Reload configurations without restarting Emacs

前端 未结 9 426
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 12:23

How do I load the edited .emacs file without restarting Emacs?

相关标签:
9条回答
  • 2020-12-12 13:00

    I usually use M-x load-file. But be aware that some initialization is only done the first time through. Things like libraries that set their defaults when loaded, but don't get reloaded the second time through. Its always a good idea to start up emacs from scratch as a final check that everything works ok.

    0 讨论(0)
  • 2020-12-12 13:00

    you can use C-x C-e which will evaluate an s-expression. Make sure the cursor is at the last parenthesis of the elisp code.

    0 讨论(0)
  • 2020-12-12 13:03

    M-x load-file ~/.emacs

    eval-buffer when the .emacs file is opened

    eval-region when you want apply selected lines

    C-x C-e evaluates the preceding expression

    0 讨论(0)
  • 2020-12-12 13:05

    Open the .emacs file, select its contents and hit C-x,C-e

    0 讨论(0)
  • 2020-12-12 13:05

    I use and recommend restart-emacs package on melpa

    0 讨论(0)
  • 2020-12-12 13:07

    M-x eval-buffer

    0 讨论(0)
提交回复
热议问题