|
| From: | Lennart Borgman (gmail) |
| Subject: | Re: New keybinding suggestion: C-x _ for `shrink-window' |
| Date: | Thu, 01 Nov 2007 01:26:42 +0100 |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
Richard Stallman wrote:
;; Function by Hirose Yuuji and Bob Wiener
(defun resize-window (&optional arg)
"Resize window interactively."
...
(cond ((= c ?h) (enlarge-window arg))
((= c ?s) (shrink-window arg))
((= c ?w) (enlarge-window-horizontally arg))
((= c ?n) (shrink-window-horizontally arg))
((= c ?\^G) (keyboard-quit))
((= c ?q) (throw 'done t))
((and (> c ?0) (<= c ?9)) (setq arg (- c ?0))))))))
(message "Done."))
That seems basically good, but using other characters
such as arrow keys would be an improvement.
/ and \ could be good for vertical size changes
and [,] for horizontal; they don't need a shift key.
Why not go the whole way and let the user choose which window border to move? The code for it is in bw-interactive.el.
| [Prev in Thread] | Current Thread | [Next in Thread] |