简体   繁体   English

如何在Mac OS X上配置gnu emacs

[英]How to config gnu emacs on Mac OS X

I use gnu emacs on Mac OS X, but I can't find the .emacs. 我在Mac OS X上使用gnu emacs,但我找不到.emacs。

And I create ~\\.emacs, but it doesn't work. 我创建〜\\ .emacs,但它不起作用。 How can I config my emacs? 我该如何配置我的emacs?

The recommended practice these days is to create a folder called .emacs.d , then put a file called init.el in there. 这些天推荐的做法是创建一个名为.emacs.d的文件夹,然后在其中放入一个名为init.el的文件。 Emacs will load this file on startup. Emacs将在启动时加载此文件。

cd
mkdir .emacs.d
cd .emacs.d
touch init.el

This .emacs.d folder is where Emacs will place temporary files, packages, etc, that you would not want polluting your home folder. 这个.emacs.d文件夹是Emacs放置临时文件,包等的地方,你不想要污染你的主文件夹。

If you're new to emacs and just want to get up-and-running, consider downloading one of the existing emacs configurations on github and tweaking that: 如果您是emacs的新手并且只是想要启动并运行,请考虑在github上下载一个现有的emacs配置并调整:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM