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

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

Re: binding b-key to pageback behavior


From: Emanuel Berg
Subject: Re: binding b-key to pageback behavior
Date: Thu, 28 Nov 2019 00:53:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

VanL wrote:

> I figure the modes all fall in ultimately in
> two boxes, either for reading or editing.

Absolutely, but you still need to mention the
individual modes (or maps) and whenever the
scrolling stuff differs, that has to be
explicit as well. So ultimately the result of
doing that wouldn't be all that different from
setting it up mode by mode.

But yes it would look something like what I've
already posted:

(defun set-vertical-keys (map)
  "Set MAP keys for moving point vertically."
  (define-key map "i" #'previous-line)
  (define-key map "k" #'next-line) )

> Having the license in the actual file like in
> 'rot13.el' is best, I believe.

Interesting, Gnus also does that, in
`gnus-summary-caesar-message'. Sounds like the
kind of pleasant thing one would like to write
in Elisp...

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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