From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Key bindings Date: Thu, 29 Mar 2007 12:49:28 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87odmcnx3b.fsf@baldur.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175168281 6874 80.91.229.12 (29 Mar 2007 11:38:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 11:38:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 13:37:58 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 1HWsx1-0005Nd-BA for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 13:37:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWsza-0006y7-B2 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 06:40:34 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: dslb-084-063-008-238.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1175165368 23579 84.63.8.238 (29 Mar 2007 10:49:28 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Thu, 29 Mar 2007 10:49:28 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAACXBIWXMAAABIAAAASABGyWs+ AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAw NGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAwMAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAAB jUlEQVRIx5VVWxLEIAjzJh6Ny+WMfm95iKhYu87ObIuEQARb2p+rjEc8P/wBgK3MK2yVbiFZlXYI 1E4kO6UHqIDYNsBjFivHQ2DonllKEFStHYB2TD4mBnqyYID4ryVmhUtOxeTErK68k9XpYfi9bP4P My/5E9WiWswAeVz9x3KEyCUAiF5mDJ5kXIFCa2BoN7k7MQARwbo2Zeg1aHySU212VlXltxJGSlBT xdQSIxOuTdrGAIxQSuGGykvN9aWumB5cJclXwz8Z+ZGQ9oqkRgGgglh89P5hz6EP1NJ7aTvVie3Z b3EettGpvXqYRO5v7c0csbHhZRjviObz4JOwzc9hpkfLbNMzmcvtlnBu2m6NNX6Y2SBJSfk9R7S2 zGOJrtMW5XdCCRfDuknZaEeVsEWkXbirSsca1qrDYKK9MSTn9w5IEEfAcnQyAXoZfS0aSXOVm8PL JytRCkTH9k5v+Er4whCTuwLgE5uP0zGlvwHJJFxqwHQzfGGAfgbwFSD5rH1xOweAvqf0T2u8rh9P LJ2hezyQygAAACp6VFh0Q29tbWVudAAAeNrzCnB1t0rPK9XNSE1M0csqSFcwMjerMDIzBABomgep tDkYGQAAABp6VFh0SlBFRy1Db2xvcnNwYWNlAAB42jMEAAAyADKxisffAAAAInpUWHRKUEVHLVNh bXBsaW5nLWZhY3RvcnMAAHjaM6owAgABuwDdqFIBcAAAAABJRU5ErkJggg== User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux) Cancel-Lock: sha1:NX/X4rEjShw40WwB3L+P8+7Zyuc= Original-Xref: shelby.stanford.edu gnu.emacs.help:146667 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:42271 Archived-At: SteveFKI writes: Hi Stephen, > (global-set-key [home] 'beginning-of-line) > (define-key global-map [end] 'end-of-line) > (define-key global-map [C-home] 'beginning-of-buffer) > (define-key global-map [C-end] 'end-of-buffer) > > I think this should work, and as you will see I have tried two ways to > map the HOME key. However, every time I press HOME it opens Search in > the mini-buffer (as if it is mapped to C-s). The END key works fine. Use `C-h k' to get the binding string and use that with the `kbd'-macro. ,----[ C-h k ] | runs the command move-beginning-of-line [...] `---- ,----[ C-h k ] | runs the command beginning-of-buffer [...] `---- You see, emacs 22 already has the bindings you want. :-) Nevertheless, if you would want to rebind them, you would do (global-set-key (kbd "") 'some-function) Bye, Tassilo -- A child of five could understand this! Fetch me a child of five!