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

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

Re: How change value of any variable at run time? (not just in.emacs w/


From: Chetan
Subject: Re: How change value of any variable at run time? (not just in.emacs w/ setq!)
Date: Wed, 17 Dec 2008 18:46:22 -0800
User-agent: Emacs Gnus

"Drew Adams" <drew.adams@oracle.com> writes:

>> > How change value of any variable at run time? (not just in .emacs)
>> > I can use setq in .emacs but I don't know about run time.
>> 
>>     M-x set-variable
>
> No. `set-variable' is only for user options.
>
> You can use `set-any-variable', from simple+.el to set any variable.
> http://www.emacswiki.org/emacs/simple%2b.el
>
>> You can also evaluate any code with M-: so this also works:
>> 
>>     M-: (setq variable ...)
>
> Yes.
>
> See also `setq-default'.
I just create a text in a buffer, current buffer if it is buffer
local variable or in scratch buffer
(setq variable ...) C-x C-e


reply via email to

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