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

[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

Alexandre,

Try putting something like:

        (defun zoom-in () (interactive)
          (window-configuration-to-register ?z)
          (delete-other-windows)
          (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.

--Greg

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

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

Alexandre


_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs




reply via email to

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