How can I reload .emacs after changing it?

我如何让Emacs重新加载我在.emacs更新的所有定义,而无需重新启动Emacs?


You can use the command load-file (Mx load-file , then press return twice to accept the default filename, which is the current file being edited).

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.


Very strange that the very convenient

Mx eval-buffer

is not mentioned here.

It immediately evaluates all code in the buffer, its the quickest method, if your .emacs is idempotent.


如果您在当前活动的缓冲区中打开了.emacs文件:

M-x eval-buffer
链接地址: http://www.djcxy.com/p/38572.html

上一篇: Clojure开发人员需要避免的常见编程错误

下一篇: 如何在更改后重新加载.emacs?