[Top][All Lists]

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

Re: reload customization

From: Barry Margolin
Subject: Re: reload customization
Date: Wed, 11 Feb 2015 11:43:44 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Haines Brown <address@hidden> wrote:

> In my init file I have
>   (defun reload () "Reloads .emacs interactively."
>     (interactive)
>     (load "~/.emacs"))
> The problem is that I also have
>   (split-window-horizontally)
> As things now stand, a reload splits current window so that I end up
> with three. I'd like to have reload instead preserve the two window
> split.

Wrap it with save-window-excursion:

  (load "~/.emacs"))

You should read the caveats in

Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

reply via email to

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