How can I reload .emacs after changing it?

前端 未结 18 894
余生分开走
余生分开走 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:44

    Keyboard shortcut:

    (defun reload-init-file ()
      (interactive)
      (load-file user-init-file))
    
    (global-set-key (kbd "C-c C-l") 'reload-init-file)    ; Reload .emacs file
    

提交回复
热议问题