* How change value of any variable at run time? (not just in .emacs w/ setq!)
@ 2008-12-17 20:16 seberino
2008-12-17 20:30 ` Teemu Likonen
2008-12-17 20:31 ` How change value of any variable at run time? (not just in .emacs " Joost Diepenmaat
0 siblings, 2 replies; 5+ messages in thread
From: seberino @ 2008-12-17 20:16 UTC (permalink / raw)
To: help-gnu-emacs
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.
Thanks,
cs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How change value of any variable at run time? (not just in .emacs w/ setq!)
2008-12-17 20:16 How change value of any variable at run time? (not just in .emacs w/ setq!) seberino
@ 2008-12-17 20:30 ` Teemu Likonen
2008-12-17 21:14 ` How change value of any variable at run time? (not just in.emacs " Drew Adams
[not found] ` <mailman.2982.1229548500.26697.help-gnu-emacs@gnu.org>
2008-12-17 20:31 ` How change value of any variable at run time? (not just in .emacs " Joost Diepenmaat
1 sibling, 2 replies; 5+ messages in thread
From: Teemu Likonen @ 2008-12-17 20:30 UTC (permalink / raw)
To: help-gnu-emacs
seberino@spawar.navy.mil (2008-12-17 12:16 -0800) wrote:
> 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.
> Thanks,
M-x set-variable
You can also evaluate any code with M-: so this also works:
M-: (setq variable ...)
And you can enter the code to any buffer (*scratch* buffer, for
example), then put the point after the closing parent of the code part
you want to evaluate and press C-x C-e (eval-last-sexp).
For more info:
C-h r m Variables RET
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How change value of any variable at run time? (not just in .emacs w/ setq!)
2008-12-17 20:16 How change value of any variable at run time? (not just in .emacs w/ setq!) seberino
2008-12-17 20:30 ` Teemu Likonen
@ 2008-12-17 20:31 ` Joost Diepenmaat
1 sibling, 0 replies; 5+ messages in thread
From: Joost Diepenmaat @ 2008-12-17 20:31 UTC (permalink / raw)
To: help-gnu-emacs
"seberino@spawar.navy.mil" <seberino@spawar.navy.mil> 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.
There's nothing but runtime in emacs lisp. In other words, you can use
setq anywhen (although some extensions rely on certain variables being
defined or undefined before loading).
If you want to experiment, type "M-x ielm" to get an interactive elisp
environment.
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How change value of any variable at run time? (not just in.emacs w/ setq!)
2008-12-17 20:30 ` Teemu Likonen
@ 2008-12-17 21:14 ` Drew Adams
[not found] ` <mailman.2982.1229548500.26697.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2008-12-17 21:14 UTC (permalink / raw)
To: 'Teemu Likonen', help-gnu-emacs
> > 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'.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How change value of any variable at run time? (not just in.emacs w/ setq!)
[not found] ` <mailman.2982.1229548500.26697.help-gnu-emacs@gnu.org>
@ 2008-12-18 2:46 ` Chetan
0 siblings, 0 replies; 5+ messages in thread
From: Chetan @ 2008-12-18 2:46 UTC (permalink / raw)
To: help-gnu-emacs
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-18 2:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 20:16 How change value of any variable at run time? (not just in .emacs w/ setq!) seberino
2008-12-17 20:30 ` Teemu Likonen
2008-12-17 21:14 ` How change value of any variable at run time? (not just in.emacs " Drew Adams
[not found] ` <mailman.2982.1229548500.26697.help-gnu-emacs@gnu.org>
2008-12-18 2:46 ` Chetan
2008-12-17 20:31 ` How change value of any variable at run time? (not just in .emacs " Joost Diepenmaat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).