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: Mathias Dahl
Subject: Re: Lock buffer to window
Date: Fri, 08 Sep 2006 10:00:40 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Mathias Dahl <brakjoller@gmail.com> writes:

> If you want to do more advanced matching of buffer names, try
> `special-display-regexps' instead.

While I'm at it I could as well give you an advanced example of this:

(setq 
 special-display-regexps 
 (list (list "jabber-chat" 
             '(width . 80)
             '(scroll-bar-width . 16)
             '(height . 15)
             '(tool-bar-lines . 0)
             '(menu-bar-lines 0)
             '(left . 80)
             '(top . 120)
             '(icon-type . "h:/dat/gfx/ico/jabber_bulb_small.ico")
             (cons 'font
                   (if (memq window-system '(win32 w32))
                       "-GURSoutline-Courier 
New-normal-r-normal-normal-11-82-96-96-c-70-iso8859-1"
                     
"-Misc-Fixed-Medium-R-Normal--14-130-75-75-C-70-ISO8859-1")))))

The above will make all buffers matching "jabber-chat" open up in a
new frame with the specified frame properties. Quite cool.


reply via email to

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