gpt4 book ai didi

emacs - windows GNU emacs 中的 .emacs 文件在哪里

转载 作者:行者123 更新时间:2023-12-04 16:37:29 25 4
gpt4 key购买 nike

Windows 中的 .emacs 文件在哪里(我使用的是 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.

最佳答案

在您的主目录中。您可以通过设置 HOME 来设置此目录。环境变量。如果未设置 home,它将在您的应用程序数据目录中查找。在 XP 上,这类似于 C:\Documents and Settings\<username>\Application Data ,在 Vista 及更高版本上 C:\Users\<username>\AppData .

如果您打开 emacs,并尝试编辑(使用 C-x C-f)~/.emacs ,那一般应该打开.emacs Emacs 将被加载。

Windows Emacs FAQ更多细节。

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

关于emacs - windows GNU emacs 中的 .emacs 文件在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1966380/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com