From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: daniel@bigwalter.net (Daniel Jensen) Newsgroups: gmane.emacs.help Subject: Re: How to rebind keys "C-j" to join-line -- SOLVED! Date: Tue, 07 Aug 2007 13:30:00 +0200 Message-ID: <87y7gny43r.fsf@orme.bigwalter.net> References: <1EA8C5CAFEE34474B0BC8809A468377F@array8f42e753d> <87r6mkngx6.fsf@debby.local.net> <87ejigjs46.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186487021 4544 80.91.229.12 (7 Aug 2007 11:43:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 11:43:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 13:43:38 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 1IINTJ-00063K-R4 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2007 13:43:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IINTI-0000fh-6a for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2007 07:43:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 8 Original-X-Trace: individual.net +SjUzL4V5YaH6DCrLkYFiAcidt8IqcUSbC1kZ2losrRY1aXm4z Cancel-Lock: sha1:LVqJQcw0pY0fAIKB0fUe25S6Fcg= sha1:RxBQnI+PQX1gznY1XHOel+6aBYA= X-Face: SNGmwsN&0DaHhS0!*%\@y"Wc^).,<; VsqY#}K/NJ:A Z6_>Md7x$Z9C1%BAu41M'12-8(f2{H*8OsnYv,K+y.szl1K>}{uC/>2?; k[KUiD=$}@z>odk|7Tk7i $A|{j7LhTt!:SdVp5Z, kKA247}--"-QLedxCbw|#&bh=R]Rd)kx{q+T'fG)9ayG`+\@g'3vx1Fd3bl -`3}Guvr!A"Z);"$|]CXW>YR5m"<[L User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:150803 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:46377 Archived-At: "Alex Wei" writes: > (add-hook 'change-major-mode-hook 'my-key-binding) This is really bad. Do you see why? If not, you will surely find out soon. Your key bindings take effect in places that you don't want them to. For example, RET is a useful key in the minibuffer, it's a shame to rebind it there.