all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Chambers <achambers.home@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: edit .emacs and then ....
Date: Fri, 15 Jun 2007 05:29:24 -0700	[thread overview]
Message-ID: <1181910564.254909.295610@c77g2000hse.googlegroups.com> (raw)
In-Reply-To: <mailman.2187.1181903494.32220.help-gnu-emacs@gnu.org>

On 15 Jun, 10:24, David <dpley...@univ-fcomte.fr> 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

       reply	other threads:[~2007-06-15 12:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2187.1181903494.32220.help-gnu-emacs@gnu.org>
2007-06-15 12:29 ` Andy Chambers [this message]
2007-06-15 12:53   ` edit .emacs and then Tassilo Horn
2007-06-19 19:53 ` Ken Goldman
2007-06-19 20:39   ` Joel J. Adamson
2007-06-20 20:11     ` Ken Goldman
2007-06-21 14:29       ` Joel J. Adamson
2007-06-15  9:24 David
2007-06-15 10:36 ` n_powell
2007-06-15 11:16 ` Peter Dyballa
2007-06-15 13:33   ` David

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=1181910564.254909.295610@c77g2000hse.googlegroups.com \
    --to=achambers.home@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.