How can I get Emacs to reload all my definitions that I have updated in .emacs
without restarting Emacs?
How to reload .emacs after changing it
emacs
Related Topic
- Using Emacs to recursively find and replace in text files not already open
- Differences between Emacs and Vim
- How to have Emacs auto-refresh all buffers when files have changed on disk
- Git – How to make Git use the editor of the choice for commits
- How to ‘redo’ changes after ‘undo’ with Emacs
- How to run multiple shells on Emacs
- How to make nrepl-ritz-jack-in work remotely over TRAMP / Emacs
- How to reload .spacemacs file after editing without restart emacs
Best Answer
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.