From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2752 Path: news.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: overriding M-e in the group buffer Date: Mon, 21 Jul 2003 22:00:21 +0200 Organization: University of Duisburg, Germany Message-ID: <84d6g3ps4q.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669070 16211 80.91.229.2 (31 Jan 2006 00:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:57:50 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:10 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!p5087753e.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: p5087753e.dip.t-dialin.net (80.135.117.62) Original-X-Trace: news.uni-berlin.de 1058817628 15682813 80.135.117.62 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:tlJlLfTwc5/UPrl5U9HG88uk9+A= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2892 Original-Lines: 19 X-Gnus-Article-Number: 2892 Tue Jan 17 17:31:10 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2752 Archived-At: jeff.rancier@softechnics.com (Jeffery B. Rancier) writes: > | (add-hook 'gnus-group-mode-hook > | (function > | (lambda () > | (global-set-key [(meta e)] 'jbr-end-fun) > | ))) Instead of global-set-key, use (define-key gnus-group-mode-map (kbd "M-e") 'jbr-end-fun). I prefer the kbd syntax because it is the same as printed by C-h l and C-h k (and friends), thus it is easy to learn. I also suggest to set up a function, for you might like to change what's inside that lambda, and when you do you will see surprising results unless you restart Emacs. -- ~/.signature