Diferença (entre a revisão 6 e versão actual)
Sumário: Rollback to 2008-09-05 00:16 UTCNenhuma dif. disponível.
Anyway, here are two bits of emacs lisp that I wrote to replace a couple of GoslingEmacs? bindings I found I couldn’t live without. They bind commands to scroll up and down by a single line to C-z and M-z respectively.
(defun rdh::scroll-down-one-line (&optional arg) "Scroll text of current window down ARG lines; or 1 line if no ARG." (interactive "P") (scroll-down (if arg (prefix-numeric-value arg) 1))) (defun rdh::scroll-up-one-line (&optional arg) "Scroll text of current window up ARG lines; or 1 line if no ARG." (interactive "P") (scroll-up (if arg (prefix-numeric-value arg) 1))) (global-set-key [(meta ?z)] 'rdh::scroll-down-one-line) (global-set-key [(control ?z)] 'rdh::scroll-up-one-line)
If you give a prefix argument, they scroll by that many lines. So C-u C-z scrolls up four lines. This does override the default C-z binding, but I find that so uniformly useless that I never miss it.