From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Chambers Newsgroups: gmane.emacs.help Subject: Re: edit .emacs and then .... Date: Fri, 15 Jun 2007 05:29:24 -0700 Organization: http://groups.google.com Message-ID: <1181910564.254909.295610@c77g2000hse.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1181914400 12759 80.91.229.12 (15 Jun 2007 13:33:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2007 13:33:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 15:33:15 2007 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 1HzBvP-0006sx-Bi for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 15:33:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzBvO-0005e9-Tm for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 09:33:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!c77g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 217.155.237.94 Original-X-Trace: posting.google.com 1181910564 32234 127.0.0.1 (15 Jun 2007 12:29:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 15 Jun 2007 12:29:24 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: c77g2000hse.googlegroups.com; posting-host=217.155.237.94; posting-account=OOX4TQ0AAADlkVZCWJTQRIpMj0KSWHiw Original-Xref: shelby.stanford.edu gnu.emacs.help:149501 X-Mailman-Approved-At: Fri, 15 Jun 2007 09:32:25 -0400 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:45090 Archived-At: On 15 Jun, 10:24, David wrote: > This is a real newby question. I have a load of buffers in emacs and I > edit .emacs with some new cool macro or what ever. To get the new code > working I could close and restart emacs, but I will have to re-load > every buffer. Is there an easy way to either 1) get the new lisp code > working without closing and reopening, or 2) close and reopen and > still have all the same buffers available so I don't have to open > easch manually. The load-file function evaluates all the elisp functions in a given file. To apply this to your cool macros, do M-x load-file RET ~/.emacs Whilst you work on your .emacs, it may be an idea to bind this to some key (global-set-key '[f2] (lambda () (load-file "~/.emacs"))) Andy