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

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

Re: reloading emacs


From: Barry Margolin
Subject: Re: reloading emacs
Date: Tue, 09 Sep 2003 16:01:33 GMT

In article <address@hidden>,
Jim Hurley  <address@hidden> wrote:
>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.

(defun reload-dot-emacs ()
  "Reload the .emacs file."
  (interactive)
  (load "~/.emacs"))

(global-set-key ... 'reload-dot-emacs)

There are possible improvements that could be made; for instance, if the
.emacs file is currently in a buffer, and it's not saved out, the command
could ask whether to save it first.

-- 
Barry Margolin, address@hidden
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


reply via email to

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