all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nospam@dev.null (Alexey Pustyntsev)
To: help-gnu-emacs@gnu.org
Subject: Re: Changing horizontal window split default to vertical?
Date: Tue, 20 Feb 2007 23:39:58 +1000	[thread overview]
Message-ID: <E1HJVDr-0002Ig-0Q@sycore.org> (raw)
In-Reply-To: <erebo5$pid$1@quimby.gnus.org> (Stephan Kuhagen's message of "Tue, 20 Feb 2007 09:33:09 +0100")

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	other threads:[~2007-02-20 13:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-20  5:50 Changing horizontal window split default to vertical? Stephan Kuhagen
2007-02-20  8:18 ` Alexey Pustyntsev
2007-02-20  8:28 ` David Hansen
     [not found] ` <mailman.4805.1171960713.2155.help-gnu-emacs@gnu.org>
2007-02-20  9:33   ` Stephan Kuhagen
     [not found] ` <mailman.4804.1171958583.2155.help-gnu-emacs@gnu.org>
2007-02-20  8:33   ` Stephan Kuhagen
2007-02-20 13:39     ` Alexey Pustyntsev [this message]
2007-02-21  4:24   ` Stefan Monnier

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=E1HJVDr-0002Ig-0Q@sycore.org \
    --to=nospam@dev.null \
    --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.