home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!swrinde!emory!europa.asd.contel.com!darwin.sura.net!lhc!lhc!warsaw
- From: warsaw@nlm.nih.gov (Barry A. Warsaw)
- Subject: Re: How can I view 3 files at once
- In-Reply-To: kim@merlin.anu.edu.au's message of 11 Nov 1992 01:45:01 GMT
- Message-ID: <WARSAW.92Nov12133642@anthem.nlm.nih.gov>
- Lines: 30
- Sender: news@nlm.nih.gov
- Reply-To: warsaw@nlm.nih.gov (Barry A. Warsaw)
- Organization: Century Computing, Inc.
- References: <1dpoitINNgjs@csc2.anu.edu.au>
- Date: 12 Nov 92 18:36:42 GMT
-
-
- Here's a simple little function I bind to C-x 3. To parallel what C-x 2
- does, it splits the current window into 3 equal sized windows. It
- requires slowsplit.el, a very cool package in its own right:
-
- lisp-dir-apropos sez:
-
- GNU Emacs Lisp Code Directory Apropos -- "slowsplit"
- "~/" refers to archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/
-
- slowsplit 89-04-05
- John Robinson, <jr@bbn.com>
- ~/as-is/slowsplit.el.Z
- Split window with minimal redisplay.
-
-
- -Barry
-
- -------------------- snip snip --------------------
- (defun baw:three-windows ()
- "Split the current window into three equally sized windows. Use
- `split-window-quietly'."
- (interactive)
- (let* ((height (window-height))
- (window2 (/ (* height 2) 3))
- (window1 (/ height 3)))
- (split-window-quietly window2)
- (select-window (get-largest-window))
- (split-window-quietly window1)
- ))
-