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

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

Re: replacing a function with another one


From: Michael Heerdegen
Subject: Re: replacing a function with another one
Date: Thu, 13 Mar 2014 08:22:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

lee <address@hidden> writes:

> > "mode:" is for *major* modes, i.e. not for hi-lock-mode.
> > You want to use "eval: (hi-lock-mode)" instead.
>
> Does this create the variable before the mode is enabled?

AFAIK, yes, as long as the variable is mentioned before the
"eval:(hi-lock-mode)".

> What if someone edits the buffer and changes the value of this
> variable?  Will it be updated automatically?

No, you would have to do this explicitly.

Michael.




reply via email to

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