From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nospam@dev.null (Alexey Pustyntsev) Newsgroups: gmane.emacs.help Subject: Re: Changing horizontal window split default to vertical? Date: Tue, 20 Feb 2007 23:39:58 +1000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171977877 18097 80.91.229.12 (20 Feb 2007 13:24:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2007 13:24:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 20 14:24:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJUyr-0008C0-7D for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Feb 2007 14:24:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJUyq-00044h-J0 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Feb 2007 08:24:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJUyP-0003mb-46 for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 08:24:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJUyJ-0003ep-0t for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 08:24:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJUyI-0003ea-Ra for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 08:23:54 -0500 Original-Received: from [87.242.74.155] (helo=sycore.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJUyI-0004rO-ET for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 08:23:54 -0500 Original-Received: by sycore.org (Postfix, from userid 8) id BD79AE4F8; Tue, 20 Feb 2007 16:23:43 +0300 (MSK) Original-Received: from sycore.org (d2189.ys.dialup.sakhalin.ru [87.251.96.189]) by sycore.org (Postfix) with ESMTP id 63E7AE4F5 for ; Tue, 20 Feb 2007 16:23:40 +0300 (MSK) Original-Received: from alexey by sycore.org with local (Exim 4.62) (envelope-from ) id 1HJVDr-0002Ig-0Q for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 23:39:59 +1000 User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.0.50 In-Reply-To: (Stephan Kuhagen's message of "Tue, 20 Feb 2007 09:33:09 +0100") X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41350 Archived-At: Stephan Kuhagen 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