emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Re: Proposal: new default bindings for winner and windm


From: Drew Adams
Subject: RE: [External] : Re: Proposal: new default bindings for winner and windmove
Date: Wed, 26 Jun 2024 17:02:31 +0000

> Windmove is not so important as ffap, to judge by the number of
> instances of each in the archives of help-gnu-emacs, and therefore
> default keybindings for its commands can only be less justified.

I fear your analogy/comparison with ffap might be
lost on some readers.

The point, I think, is that ffap DOES NOT just force
(what it considers to be its) default bindings on users.

What does it do?  It puts a list of `global-set-key'
forms in a variable, `ffap-bindings'.  And then it
defines a command, `ffap-bindings', that evaluates
the variable, creating the bindings.

What's more, ffap is polite enough to say this in the
doc string of variable `ffap-bindings':

 "List of binding forms evaluated by function `ffap-bindings'.
 A reasonable ffap installation needs just this one line:
   (ffap-bindings)
 Of course if you do not like these bindings, just roll your own!"

That's a clean approach.  Alternatively, use a minor
mode.  And maybe a defcustom instead of a defvar for
the bindings.  (`ffap.el' was written long, long ago.)



reply via email to

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