From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allan Gottlieb Newsgroups: gmane.emacs.help Subject: Re: Some way to have cursor focus on help windows automatically? Date: Sat, 20 Oct 2007 18:00:29 -0400 Message-ID: References: <1192754215.200986.134870@i13g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192917667 19596 80.91.229.12 (20 Oct 2007 22:01:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 22:01:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 21 00:01:08 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IjMNW-00085I-Il for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Oct 2007 00:01:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjMNO-0008BQ-Ua for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 18:00:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjMN8-00089k-1V for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 18:00:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjMN5-00086R-CJ for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 18:00:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjMN5-00086O-5G for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 18:00:39 -0400 Original-Received: from smtp.cs.nyu.edu ([128.122.140.230]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IjMN4-0001rN-R2 for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 18:00:38 -0400 Original-Received: from ajglap.localdomain (ool-4578d5e5.dyn.optonline.net [69.120.213.229]) (authenticated bits=0) by smtp.cs.nyu.edu (8.13.6/8.13.6) with ESMTP id l9KM0ZWf004730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 20 Oct 2007 18:00:36 -0400 (EDT) Original-Received: by ajglap.localdomain (Postfix, from userid 1502) id 0508919D97B; Sat, 20 Oct 2007 18:00:29 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Fri\, 19 Oct 2007 15\:00\:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48644 Archived-At: At Fri, 19 Oct 2007 15:00:07 +0200 Juanma Barranquero wrote: > On 10/19/07, Philip@kime.org.uk wrote: > >> When I do C-h and the buffer-window splits to display the >> help buffer, I want the focus to go to the help buffer so I can just >> to "q" to get rid of it. So much more convenient what C-x 1 in the >> original buffer. Any way to set this? This is very nice. Thanks for pointing it out. For anyone wanting to try it, just add these four lines to .emacs. (require 'ehelp) (define-key global-map "\C-h" 'ehelp-command) (define-key global-map [help] 'ehelp-command) (define-key global-map [f1] 'ehelp-command) allan