From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8551: making Emacs remember a key binding to 'other-window Date: Mon, 25 Apr 2011 16:39:24 -0300 Message-ID: References: <3679AE44D8C04547A4F3EB83E7790562A8B3FE561E@MBX01.ldschurch.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303762069 28410 80.91.229.12 (25 Apr 2011 20:07:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2011 20:07:49 +0000 (UTC) Cc: 8551-done@debbugs.gnu.org To: Kevin Michael Simonson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 25 22:07:45 2011 Return-path: Envelope-to: geb-bug-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 1QES4J-0006CD-3d for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Apr 2011 22:07:39 +0200 Original-Received: from localhost ([::1]:56310 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QES4I-0004cn-Gh for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Apr 2011 16:07:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QES4F-0004c6-E3 for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 16:07:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QES4E-0003I8-HA for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 16:07:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QES4E-0003I2-7p for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 16:07:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QERdb-0007ny-7S for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 15:40:03 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Apr 2011 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 8551 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 8551@debbugs.gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by 8551-done@debbugs.gnu.org id=D8551.130376037629966 (code D ref 8551); Mon, 25 Apr 2011 19:40:02 +0000 Original-Received: (at 8551-done) by debbugs.gnu.org; 25 Apr 2011 19:39:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QERd9-0007nH-Nx for submit@debbugs.gnu.org; Mon, 25 Apr 2011 15:39:36 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QERd7-0007n4-MJ for 8551-done@debbugs.gnu.org; Mon, 25 Apr 2011 15:39:34 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:42549 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QERd2-0004wF-0a; Mon, 25 Apr 2011 15:39:28 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C04AA6610E; Mon, 25 Apr 2011 16:39:24 -0300 (ART) In-Reply-To: <3679AE44D8C04547A4F3EB83E7790562A8B3FE561E@MBX01.ldschurch.org> (Kevin Michael Simonson's message of "Mon, 25 Apr 2011 11:28:46 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 25 Apr 2011 15:40:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46005 Archived-At: > I am often running Emacs with multiple windows. In my opinion the "C-x o" > key-combination is too cumbersome, and I never use the "open-line" function > "C-o" is bound to, so I'm always using "global-set-key" to bind "C-o" to > "other-window". How can I put that key binding in my ".emacs" file so that > this key binding is remembered and I don't have to keep executing > "global-set-key" manually? I'd recommend you post such questions to gnu.emacs.help, since it's neither a bug report, nor a feature request, but just a question. As for answers, the Emacs manual (reachable via the Help menu, for example) is a good way to figure it out. It has a whole section "53.4.6 Rebinding Keys in Your Init File" with examples. So for your case, you'd do: (global-set-key [?\C-o] 'other-window) -- Stefan