[Top][All Lists]

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

Re: Zoom on a buffer

From: Alexandre Brillant
Subject: Re: Zoom on a buffer
Date: Thu, 21 Feb 2002 20:17:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120

Thank for all previous response and particulary for your response which is exactly what I need.

Alexandre Brillant

Greg Hill wrote:


Try putting something like:

    (defun zoom-in () (interactive)
      (window-configuration-to-register ?z)
      (global-set-key [?\C-z] 'zoom-out))

    (defun zoom-out () (interactive)
      (jump-to-register ?z)
      (global-set-key [?\C-z] 'zoom-in))

    (global-set-key [?\C-z] 'zoom-in)

in your .emacs file. Then you can use Control-Z to toggle back and forth.

If you want, you could use this same basic approach for saving several different configurations that you like to switch back and forth among. Just use a different register for each configuration.

See chapter 10 of the GNU Emacs Manual for a discussion of Registers. See section 28.17 of the GNU Emacs Lisp Reference Manual for a discussion of Window Configurations.


At 7:38 PM +0100 2/20/02, Alexandre Brillant wrote:


I use most of the time a lot of buffer at once on the screen (C-x 2 & C-x 3). Sometimes, I need to maximize a buffer window and
restore after all the original buffer window.

Does someone know how to do that ?

Thank you


Help-gnu-emacs mailing list

Help-gnu-emacs mailing list

reply via email to

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