更改后如何重新加载 .emacs? [英] How can I reload .emacs after changing it?
本文介绍了更改后如何重新加载 .emacs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不重启 Emacs 的情况下让 Emacs 重新加载我在 .emacs
中更新的所有定义?
How can I get Emacs to reload all my definitions that I have updated in .emacs
without restarting Emacs?
推荐答案
您可以使用命令 load-file (Mx load-file
,然后按两次返回接受默认文件名,即当前正在编辑的文件).
You can use the command load-file (M-x load-file
, then press return twice to accept the default filename, which is the current file being edited).
您也可以将点移动到任何 sexp 的末尾,然后按 C-xC-e 仅执行该 sexp.如果您只是更改一两行,通常不需要重新加载整个文件.
You can also just move the point to the end of any sexp and press C-xC-e to execute just that sexp. Usually it's not necessary to reload the whole file if you're just changing a line or two.
这篇关于更改后如何重新加载 .emacs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文