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

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

Re: reloading emacs


From: Stein A. Stromme
Subject: Re: reloading emacs
Date: Tue, 09 Sep 2003 18:39:14 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

[Jim Hurley]

| Hello,
| 
| Was just wondering how I could tie the reloading of 
| .emacs to a function key. This seems desirable to
| quickly check changes I make to the file.

If you do this, be aware that loading .emacs again is not the
equivalent of starting a fresh emacs, especially if you add things to
load-path, or simply remove a setq of a defvar-ed variable.  Also,
existing buffers and variables not mentioned by .emacs will survive,
etc.  

For your question, look into load-file or eval-buffer or (perhaps most
relevant) eval-current-buffer.

SA
-- 
Stein Arild Strømme            +47 55584825, +47 95801887
Universitetet i Bergen                  Fax: +47 55589672     
Matematisk institutt               www.mi.uib.no/stromme/         
Johs Brunsg 12, N-5008 BERGEN           stromme@mi.uib.no


reply via email to

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