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: VanL
Subject: Re: binding b-key to pageback behavior
Date: Thu, 28 Nov 2019 16:50:59 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> 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.

In a more perfect world DWIM Mode just works.

> 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) )

I cargo culted the two liner and it
broke Emacs's startup.  Will see how
this goes.  Thanks.

>> 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...

C17's draft N2176 page 13 point 14 is an unpleasant shocker.

-- 
LoL,
  əə0@ 一 二 三 言 語 𝔖
  'VLIW architecture?'
  G4 White 78 Black 79




reply via email to

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