How can I get Emacs to reload all my definitions that I have updated in .emacs
without restarting Emacs?
Another way to do this is press space twice ( SPC SPC ) which brings you into the emacs command mode. Then type: sync-config and press Enter which will execute the dotspacemacs/sync-configuration-layers command and reload your config.
There is no way to restart an Emacs session once you have killed it. You can, however, arrange for Emacs to record certain session information, such as which files are visited, when you kill it, so that the next time you restart Emacs it will try to visit the same files and so on.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With