help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting the mode of a buffer


From: Joost Kremers
Subject: Re: setting the mode of a buffer
Date: 7 Mar 2014 08:47:54 GMT
User-agent: slrn/pre1.0.0-18 (Linux)

lee wrote:
> Perhaps I´m going all wrong about this and there is a better way to
> reload a mode?

It's possible you don't need to reload the mode at all. This is Lisp,
after all, not C. If you change a function definition, you only need to
eval it (eval-defun, bound to C-M-x in emacs-lisp-mode), or you can
recompile the entire file.

If you change a defvar, eval'ing that won't load the new value, but you
can simply use setq to set the new value.

IME it's hardly never necessary to actually unload a feature and then
reload it.


-- 
Joost Kremers                                   joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]