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

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

Re: Changing horizontal window split default to vertical?


From: Alexey Pustyntsev
Subject: Re: Changing horizontal window split default to vertical?
Date: Tue, 20 Feb 2007 23:39:58 +1000
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.0.50

Stephan Kuhagen <nospam@domain.tld> writes:

> Alexey Pustyntsev wrote:
>
>> How about
>> 
>> (setq split-window-horizontally t) ?
>
> No, doesn't change anything, although in a running Emacs it is exactly the
> command to split the windows like I want to. But does not change the
> startup behaviour.
>
> Stephan

Thanks to Juri Linkov, I borrowed the following code from his nice
site 

http://www.jurta.org/emacs


(add-hook 'after-init-hook
          (lambda ()
            ;; Show home directory on left pane, and last visited file on right
            (split-window-horizontally)
            (dired (my-home ?h)))
          ;; Note that 3-rd argument of this `add-hook' should be `t'
          ;; to append the call of the `dired' after other hooked functions,
          ;; most importantly after `desktop-read'.
          t)


The above code works all right for me and does split the window as you
asked. Hopefully, that may help you.


-- 
Rgds
Alexey




reply via email to

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