From: Chetan <Chetan.xspam@xspam.sbcglobal.net>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <81ocza8akh.fsf@myhost.sbcglobal.net> (raw)
In-Reply-To: mailman.2982.1229548500.26697.help-gnu-emacs@gnu.org
"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
next prev parent reply other threads:[~2008-12-18 2:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2008-12-17 20:31 ` How change value of any variable at run time? (not just in .emacs " Joost Diepenmaat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81ocza8akh.fsf@myhost.sbcglobal.net \
--to=chetan.xspam@xspam.sbcglobal.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).