From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Running .emacs style commands within emacs Date: Wed, 21 May 2008 18:58:21 +1000 Organization: Rapt Technologies Message-ID: <87skwcvxsi.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211363538 22374 80.91.229.12 (21 May 2008 09:52:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 09:52:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 11:52:57 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jyl06-0002N5-RQ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 11:52:51 +0200 Original-Received: from localhost ([127.0.0.1]:60623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JykzM-0005HM-Fy for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 05:52:04 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.posted.internode!news.posted.internode.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 21 May 2008 03:58:21 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:PmQmocdkxfsKX6hDtxu5Bh3zTrk= Original-Lines: 19 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 121.44.102.171 Original-X-Trace: sv3-72fWSiUHrEfqVP3RbCXtKz1LP3bepE3FlOFouXk+5cooyNcSnPG5naPF4XcqSCSw6GuTkhnJx/JaU42!VOxAj+ZoBkJifb1ep7ooGgy1uh9CWwy38PM77I5bNwJU0JSQuhqDhFDV75jtGIecqX2x03zB1rk= Original-X-Complaints-To: abuse@internode X-DMCA-Complaints-To: abuse@internode X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.38 Original-Xref: news.stanford.edu gnu.emacs.help:158829 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54196 Archived-At: "Ben Forbes" 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. enter the elisp form you want to evaluate. Put the cursor at the end and hit C-x C-e. There are many other commands that will do similar things, but that will get you started. > -- tcross (at) rapttech dot com dot au