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

🏷️ 直播365足球 📅 2026-02-15 08:28:52 👤 admin 👀 5009 ❤️ 891
windows emacs中的.emacs文件在哪里?

向文件中添加以下代码(例如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

相关推荐