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

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

RE: Running .emacs style commands within emacs


From: Drew Adams
Subject: RE: Running .emacs style commands within emacs
Date: Tue, 20 May 2008 06:41:46 -0700

> 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.

C-M-x, with the cursor on the sexp somewhere, assuming you are in
emacs-lisp-mode. See node Lisp Eval of the Emacs manual.

P.S., use plain text, not HTML, for mail to this mailing list.





reply via email to

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