From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vijay Lakshminarayanan Newsgroups: gmane.emacs.help Subject: Re: Binding M-n in info mode. Date: Fri, 02 Sep 2011 21:37:08 +0530 Message-ID: <87bov3dj2r.fsf@gmail.com> References: <877h5rp55l.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1314979646 11930 80.91.229.12 (2 Sep 2011 16:07:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 16:07:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Thien-Thi Nguyen To: Dani Moncayo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 02 18:07:22 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QzWH3-00014p-T4 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 18:07:22 +0200 Original-Received: from localhost ([::1]:48868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzWH2-0008OG-HY for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 12:07:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzWGx-0008MG-P8 for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 12:07:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzWGw-0006r8-9p for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 12:07:15 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:59687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzWGv-0006qd-VR for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 12:07:14 -0400 Original-Received: by pzk36 with SMTP id 36so5323646pzk.17 for ; Fri, 02 Sep 2011 09:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=rLIaUAZwHFcboJG4kv5TQHqJuy3rYEGRxnd/FgzsdEE=; b=SOdZVVu8EugtMxKu5xA8Wcuuc7rVO97vHM7v6GTotXqXItuE10VWlAJT7L84l/pYZo R6WKPNWS/OdK9Nf3dU6CoZShb+85kSWna73Go+uaG7beWtt+8Vc/0emk4rf+R5ZsQigm Z6/F/lQTZ8mr08FHAnLI7GWA5x3oOBQFlKwHk= Original-Received: by 10.68.17.193 with SMTP id q1mr1889100pbd.526.1314979632970; Fri, 02 Sep 2011 09:07:12 -0700 (PDT) Original-Received: from BALROG ([59.92.79.237]) by mx.google.com with ESMTPS id i4sm2070061pbr.4.2011.09.02.09.07.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Sep 2011 09:07:12 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Fri, 2 Sep 2011 14:17:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.44 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82121 Archived-At: Dani Moncayo writes: >> no worries to go w/ the pre-load >> =C2=A0(it's wee code), as Eli suggested above >> but mayhaps one enjoys the parsimony >> =C2=A0(not always phony), of experience-wrested love: >> =E2=80=98eval-after-load=E2=80=99 delays the remapping >> =C2=A0(less memory-sapping), until you really need it; >> =E2=80=98add-hook=E2=80=99 denies the stoned noncing >> =C2=A0(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=20 (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. --=20 Cheers ~vijay Gnus should be more complicated.