首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >windows emacs中的.emacs文件在哪里?

windows emacs中的.emacs文件在哪里?
EN

Stack Overflow用户
提问于 2009-12-27 16:52:15
回答 2查看 1.7K关注 0票数 5

windows中的.emacs文件在哪里(我使用的是Emacs-23-CvsP091103-EmacsW32-1.58 )

当Emacs启动时,它尝试加载和执行一个通常称为.emacs的文件的内容(尽管它可能有其他名称,但看看我把init文件放在哪里?)其中包含您所做的任何自定义。您可以手动向.emacs添加lisp代码,也可以使用“选项”菜单中可访问的自定义接口。如果文件不存在,Emacs将从默认设置开始。

EN

回答 2

Stack Overflow用户

发布于 2010-01-12 13:26:36

windows上的emacs版本(22.3.1)将init文件放在那里:~/.emacs/init.el

(关于~的定义,见Brian的文章,这里是家)。

票数 0
EN

Stack Overflow用户

发布于 2012-03-09 02:13:41

向文件中添加以下代码(例如c:/..emacs)。

代码语言:javascript
复制
;; This function must be at begin
(defun zxy-relocate-dotemacs ()
  "Relocate .emacs file"
  (interactive)
  (with-temp-buffer
    (let (print-level print-length)
      (insert (format "(load-file \"%s\")" load-file-name))
      (if (file-exists-p "~/.emacs")
          (message "[zxy] Don't need relocate .emacs file!")
        (progn
          (message "[zxy] Relocate .emacs file.")
          (write-file "~/.emacs"))))))
(zxy-relocate-dotemacs)
;; Your configuration here

打开emacs和M加载文件c:/.emacs。

然后将.emacs重新定位到c:/..emacs。

当我把我的电子邮件复制到一台新电脑时,我就用它了。

更多信息,请访问我的博客附件emacs。http://coordinate.sinaapp.com/?cat=3

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1966380

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档