How can I reload .emacs after changing it?

前端 未结 18 858
余生分开走
余生分开走 2020-12-12 08:51

How can I get Emacs to reload all my definitions that I have updated in .emacs without restarting Emacs?

18条回答
  •  攒了一身酷
    2020-12-12 09:24

    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).

    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.

提交回复
热议问题