all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: adamsonj@email.unc.edu (Joel J. Adamson)
To: Tim X <timx@nospam.dev.null>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Running .emacs style commands within emacs
Date: Wed, 21 May 2008 09:28:47 -0400	[thread overview]
Message-ID: <87ve17vjo8.fsf@W0053328.mgh.harvard.edu> (raw)
In-Reply-To: 87skwcvxsi.fsf@lion.rapttech.com.au

Tim X <timx@nospam.dev.null> writes:

> "Ben Forbes" <bdforbes@gmail.com> writes:
>
>> Actually what I meant was, I want to run lisp forms from within emacs. Eg,
>> (global-set-key "\C-\M-z" 'delete-whole-line). There must be a Lisp engine
>> running within Emacs that interprets this form when it is in the .emacs init
>> file. Can I send lisp forms to this engine at any given time during an Emacs
>> session? I know global-set-key can be run from M-x but it's interactive, I'd
>> like to be able to enter the above form manually.
>
> This is what I use the scratch buffer for. 
>

There's also an interactive Emacs Lisp REPL called ielm in Emacs 23
(from CVS).

M-x ielm

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj




  reply	other threads:[~2008-05-21 13:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.11862.1211250760.18990.help-gnu-emacs@gnu.org>
2008-05-20  4:32 ` Running .emacs style commands within emacs B. T. Raven
2008-05-20  7:19   ` Ben Forbes
2008-05-20 13:41     ` Drew Adams
2008-05-20 22:55       ` Ben Forbes
     [not found]   ` <mailman.11880.1211284612.18990.help-gnu-emacs@gnu.org>
2008-05-20 12:26     ` B. T. Raven
2008-05-21  8:58     ` Tim X
2008-05-21 13:28       ` Joel J. Adamson [this message]
2008-05-20 18:05 ` james
2008-05-19 23:51 Ben Forbes

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ve17vjo8.fsf@W0053328.mgh.harvard.edu \
    --to=adamsonj@email.unc.edu \
    --cc=help-gnu-emacs@gnu.org \
    --cc=timx@nospam.dev.null \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.