[Top][All Lists]

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

Re: edit .emacs and then ....

From: Andy Chambers
Subject: Re: edit .emacs and then ....
Date: Fri, 15 Jun 2007 05:29:24 -0700
User-agent: G2/1.0

On 15 Jun, 10:24, David <address@hidden> 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

(global-set-key '[f2] (lambda () (load-file "~/.emacs")))


reply via email to

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