all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: Take effect on changes in .emacs without closing emacs
Date: Thu, 17 Apr 2008 02:55:31 +0300	[thread overview]
Message-ID: <87myntnymk.fsf@kobe.laptop> (raw)
In-Reply-To: 87od898tch.fsf@merkury.smsnet.pl

On Wed, 16 Apr 2008 21:58:38 +0200, Rob Wolfe <rw@smsnet.pl> wrote:
> istillshine@gmail.com writes:
>
>> How to see the results of my change of .emacs without exiting emacs?
>
> I use this function:
>
> ;; reload the init file
> (defun reload ()
>   "Reload the .emacs file"
>   (interactive "*" )
>   (load-file ".emacs"))

The current directory may have changed since Emacs started.  A minor
improvement is probably:

    (load-file user-init-file)

The `user-init-file' contains the absolute path of the user's init file.
If the actual init file loaded is a compiled file, such as `.emacs.elc',
the value refers to the corresponding source file, so the `load-file'
call will DTRT regardless of the current working directory.



      reply	other threads:[~2008-04-16 23:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 23:51 Take effect on changes in .emacs without closing emacs istillshine
2008-04-14 23:58 ` Joost Diepenmaat
2008-04-15  0:12   ` tyler
2008-04-15  0:12 ` Giorgos Keramidas
2008-04-15 22:07 ` Mickey Ferguson
2008-04-16 19:58 ` Rob Wolfe
2008-04-16 23:55   ` Giorgos Keramidas [this message]

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=87myntnymk.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --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.