[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: an elegant suggestion, not a bug
From: |
Greg A. Woods |
Subject: |
Re: an elegant suggestion, not a bug |
Date: |
Fri, 26 Jan 2001 01:29:29 -0500 (EST) |
[ On Thursday, January 25, 2001 at 13:31:08 (-0500), Gary L. Dryfoos wrote: ]
> Subject: an elegant suggestion, not a bug
>
> I have for several years now bound M-z to 'bury-buffer, with happy
> results, and I use it as an example of key-customization when teaching
> an Emacs minicourse here at the Institute. Tom Turner of your staff
> came to our class yesterday, and suggested that I let you know about
> my little improvement.
>
> So: you might consider changing the binding of M-z, unless y'all are
> enamored of zap-to-char for some reason.
I don't know that I've ever interactively used bury-buffer.
For bindings to `z' with modifiers I personally prefer:
(global-set-key "\e\C-z" 'suspend-emacs)
(global-set-key "\C-xz" 'enlarge-window)
(global-set-key "\C-x\C-z" 'shrink-window)
(global-set-key "\ez" 'scroll-one-line-down)
(global-set-key "\C-z" 'scroll-one-line-up)
(defun scroll-one-line-up (&optional arg)
"Scroll the selected window up (forward in the text) one line (or N
lines)."
(interactive "p")
(scroll-up (or arg 1)))
(defun scroll-one-line-down (&optional arg)
"Scroll the selected window down (backward in the text) one line (or
N)."
(interactive "p")
(scroll-down (or arg 1)))
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>