[Top][All Lists]

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

Re: Zoom on a buffer

From: Greg Hill
Subject: Re: Zoom on a buffer
Date: Wed, 20 Feb 2002 12:08:30 -0800


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

reply via email to

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