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

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

Re: Lock buffer to window


From: Nikolaj Schumacher
Subject: Re: Lock buffer to window
Date: Thu, 24 May 2007 16:32:17 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin)

Nikolaj Fogh <nikolajfogh@gmail.com> wrote

> I was wondering if there was any way of locking a specific buffer to a
> window it emacs, so that that window never changes buffer.


Hello Nikolaj,


try adding the following to your .emacs:

(define-minor-mode sticky-buffer-mode
  "Make the current window always display this buffer."
  nil " sticky" nil
  (set-window-dedicated-p (selected-window) sticky-buffer-mode))

then M-x sticky-buffer-mode.



regards,
Nikolaj Schumacher




reply via email to

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