unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
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 20:30:49 GMT	[thread overview]
Message-ID: <873agmfssm.fsf@iki.fi> (raw)
In-Reply-To: 1cd84fa4-dc11-4457-bee9-b7b77f589fe1@s9g2000prg.googlegroups.com

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


  reply	other threads:[~2008-12-17 20:30 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 [this message]
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

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=873agmfssm.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --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).