From: Vijay Lakshminarayanan <laksvij@gmail.com>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: help-gnu-emacs@gnu.org, Thien-Thi Nguyen <ttn@gnuvola.org>
Subject: Re: Binding M-n in info mode.
Date: Fri, 02 Sep 2011 21:37:08 +0530 [thread overview]
Message-ID: <87bov3dj2r.fsf@gmail.com> (raw)
In-Reply-To: <CAH8Pv0gZ7qZ6aW5HK_G9xGxa2mZ0GhjjpT4hfH6nngO=AKjToA@mail.gmail.com> (Dani Moncayo's message of "Fri, 2 Sep 2011 14:17:14 +0200")
Dani Moncayo <dmoncayo@gmail.com> writes:
>> no worries to go w/ the pre-load
>> (it's wee code), as Eli suggested above
>> but mayhaps one enjoys the parsimony
>> (not always phony), of experience-wrested love:
>> ‘eval-after-load’ delays the remapping
>> (less memory-sapping), until you really need it;
>> ‘add-hook’ denies the stoned noncing
>> (o profligate consing): emacs grows as you feed it.
>
> What is that? Poetry?? ;))
It is, and it's pretty good. Nice one, Thien.
> Well, thanks to all of you for helping!
What Thien means is you should, in your .emacs, use
;; COMPLETELY untested
(eval-after-load "info"
(progn
(define-key Info-mode-map (kbd "M-n") #'forward-paragraph)
(define-key Info-mode-map (kbd "M-n") #'backward-paragraph)))
because it (a) delays the remapping and (b) is less memory sapping.
Furthermore, you could, to prevent "profligate consing", choose to
define the custom keybindings as an Info-mode-hook.
--
Cheers
~vijay
Gnus should be more complicated.
next prev parent reply other threads:[~2011-09-02 16:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-02 9:14 Binding M-n in info mode Dani Moncayo
2011-09-02 9:25 ` Eli Zaretskii
2011-09-02 9:31 ` Dani Moncayo
2011-09-02 10:14 ` Deniz Dogan
2011-09-02 11:14 ` Thien-Thi Nguyen
2011-09-02 12:17 ` Dani Moncayo
2011-09-02 16:07 ` Vijay Lakshminarayanan [this message]
2011-09-02 16:17 ` Deniz Dogan
2011-09-02 20:02 ` Dani Moncayo
2011-09-02 19:59 ` Dani Moncayo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bov3dj2r.fsf@gmail.com \
--to=laksvij@gmail.com \
--cc=dmoncayo@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=ttn@gnuvola.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.