Windows GNU emacs中的.emacs文件在哪里 [英] Where is the .emacs file in windows GNU emacs

查看:156
本文介绍了Windows GNU emacs中的.emacs文件在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当Emacs(。启动,它尝试
加载并执行通常称为.emacs的
文件的内容(虽然它
可能有其他名称,请参阅我在哪里
放入我的init文件?),其中包含您所做的任何
自定义。您可以
手动添加lisp代码到.emacs,
或您可以使用从$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $如果文件不存在,
Emacs将以默认的
设置开始。



解决方案

在你的主目录中。您可以通过设置 HOME 环境变量来设置此目录。如果没有设置home,它将在您的Application Data目录中查看。在XP上,在Vista和更高版本的 C:\\ C $ \\ C $ C> C:\Documents and Settings\< username> \Application Data \\ Users \< username> \AppData 。



如果您打开emacs,并尝试编辑(使用 Cx Cf c code,应通常打开Emacs将要加载的 .emacs



请参阅 Windows Emacs FAQ 了解更多详情。



设置 HOME 环境变量,打开系统控制面板,进入高级选项卡,单击环境变量,然后单击用户变量部分中的新建按钮。


Where is the .emacs file in windows (I'm using Emacs-23-CvsP091103-EmacsW32-1.58 )

When Emacs starts up, it attempts to load and execute the contents of a file commonly called .emacs (though it may have other names, see Where do I put my init file?) which contains any customizations you have made. You can manually add lisp code to your .emacs, or you can use the Customization interface accessible from the Options menu. If the file does not exist, Emacs will start with the default settings.

解决方案

In your home directory. You can set this directory by setting the HOME environment variable. If home isn't set, it will look in your Application Data directory. On XP, that's something like C:\Documents and Settings\<username>\Application Data, on Vista and later C:\Users\<username>\AppData.

If you open up emacs, and try editing (with C-x C-f) ~/.emacs, that should generally open up the .emacs that Emacs will be loading.

See the Windows Emacs FAQ for more details.

To set the HOME environment variable, open the System Control Panel, go to the Advanced tab, click Environment Variables, then click the New button in the "User variables" section.

这篇关于Windows GNU emacs中的.emacs文件在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆