Reload configurations without restarting Emacs

EmacsLoadingRestart

Emacs Problem Overview


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

Emacs Solutions


Solution 1 - Emacs

M-x eval-buffer

Solution 2 - Emacs

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.

Solution 3 - Emacs

In the *scratch* buffer, type:

(load-file user-init-file)

Then press C-x C-e to evaluate the expression.

Solution 4 - Emacs

M-x load-file and then choose the .emacs file should also work

Solution 5 - Emacs

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

Solution 6 - Emacs

M-x load-file ENTER
~/.emacs
ENTER

(source)

Solution 7 - Emacs

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

Solution 8 - Emacs

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.

Solution 9 - Emacs

I use and recommend restart-emacs package on melpa

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmemiusView Question on Stackoverflow
Solution 1 - EmacsMartin CoteView Answer on Stackoverflow
Solution 2 - EmacsKeithBView Answer on Stackoverflow
Solution 3 - EmacstkfView Answer on Stackoverflow
Solution 4 - EmacsMario FView Answer on Stackoverflow
Solution 5 - EmacsWisdomFusionView Answer on Stackoverflow
Solution 6 - EmacsGeremiaView Answer on Stackoverflow
Solution 7 - EmacsMark RoddyView Answer on Stackoverflow
Solution 8 - EmacsShantanuView Answer on Stackoverflow
Solution 9 - EmacsJoeView Answer on Stackoverflow