all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: list-buffers - winwod-height
Date: Tue, 04 Apr 2006 10:11:03 +0900	[thread overview]
Message-ID: <b4m1wwejgbc.fsf@jpl.org> (raw)
In-Reply-To: e0rp4e$11a$1@news.service.uci.edu

>>>>> In <e0rp4e$11a$1@news.service.uci.edu> Rares Vernica wrote:

> How can I set the default height of the list-buffers window?

There seems to be no way other than using your own command.
How about this?

--8<---------------cut here---------------start------------->8---
(setq my-list-buffers-window-height 16)

(defun my-list-buffers (&optional files-only)
  (interactive "P")
  (let ((buffer (list-buffers-noselect files-only)))
    (display-buffer buffer)
    (enlarge-window (max (- (window-height (get-buffer-window buffer))
			    my-list-buffers-window-height)
			 (- window-min-height (window-height))))))

(substitute-key-definition 'list-buffers 'my-list-buffers global-map)
--8<---------------cut here---------------end--------------->8---

Otherwise, you can use the `special-display-buffer-names'
variable if you'd like to pop up a frame.  For example:

(add-to-list 'special-display-buffer-names
	     '("*Buffer List*" (height . 16) (width . 80)))

  reply	other threads:[~2006-04-04  1:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-03 18:22 list-buffers - winwod-height Rares Vernica
2006-04-04  1:11 ` Katsumi Yamaoka [this message]
2006-04-04  1:35   ` Rares Vernica
2006-04-04 16:38   ` Kevin Rodgers
     [not found]   ` <mailman.36.1144168815.9609.help-gnu-emacs@gnu.org>
2006-04-04 23:21     ` Rares Vernica
2006-04-05 15:15       ` Kevin Rodgers

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=b4m1wwejgbc.fsf@jpl.org \
    --to=yamaoka@jpl.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.