From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Fogh Newsgroups: gmane.emacs.help Subject: Re: Lock buffer to window Date: Thu, 24 May 2007 16:05:06 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <4655b472$0$90263$14726298@news.sunsite.dk> References: <4654ab90$0$90266$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1180024826 31965 80.91.229.12 (24 May 2007 16:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 May 2007 16:40:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 18:40:22 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 1HrGMN-00063h-J0 for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2007 18:40:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HrGMQ-000108-2u for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2007 12:40:22 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!uio.no!hist.no!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051113) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 29 Original-NNTP-Posting-Host: 10.8.12.119 Original-X-Trace: news.sunsite.dk DXC=a@]1P[cEI^^bD]FUj; YcCZYSB=nbEKnk[BeW^X3\7QfS4HbGe`K6]kVZ6DL; XWacW_6iZP@]=lolW Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:148806 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:44396 Archived-At: Nikolaj Schumacher wrote: > Nikolaj Fogh 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 > > Thanks a lot. That was just what I was looking for.