all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barry.margolin@level3.com>
Subject: Re: reloading emacs
Date: Tue, 09 Sep 2003 16:01:33 GMT	[thread overview]
Message-ID: <xPm7b.618$mD.125@news.level3.com> (raw)
In-Reply-To: mailman.69.1063121952.21628.help-gnu-emacs@gnu.org

In article <mailman.69.1063121952.21628.help-gnu-emacs@gnu.org>,
Jim Hurley  <jhurley@katana-technology.com> 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, barry.margolin@level3.com
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.

  parent reply	other threads:[~2003-09-09 16:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.69.1063121952.21628.help-gnu-emacs@gnu.org>
2003-09-09 15:57 ` reloading emacs jphil21
2003-09-09 16:01 ` Barry Margolin [this message]
2003-09-09 16:39 ` Stein A. Stromme
2003-09-09 16:46   ` Lute Kamstra
2003-09-09 17:37     ` Stein A. Stromme
2003-09-09 18:18       ` Lute Kamstra
2003-09-09 17:07 ` Pascal Bourguignon
2003-09-09 15:28 Jim Hurley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='xPm7b.618$mD.125@news.level3.com' \
    --to=barry.margolin@level3.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.