From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: how can I replace one keybing with another one ? Date: Wed, 26 Sep 2012 12:10:33 +0200 Organization: Informatimago Message-ID: <87lifx3xie.fsf@kuiper.lan.informatimago.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1348654520 4026 80.91.229.3 (26 Sep 2012 10:15:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2012 10:15:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 26 12:15:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TGoeE-0005re-Mw for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Sep 2012 12:15:18 +0200 Original-Received: from localhost ([::1]:45282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGoe9-0003oY-Hp for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Sep 2012 06:15:13 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: individual.net izmE1430ZFOWx1T9wn0HpQ+PTXvcpmD3XRVPQTltxFj2d1VfOUAHvfsmA85zhDsMbo Cancel-Lock: sha1:ZGUzNjAzODkzOTdhZmJhMmM2NTYzMWEyNWZkNGNhNmEzNGVjMDJjZg== sha1:9CEIJ55gzNmRGoMS1PGZISRecEQ= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:194582 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86919 Archived-At: horse_rivers writes: > hi, >     how can I  replace one keybing  with  another  one ?  >    for example,I want to use ctrl-a to replace ctrl-x-o,how to write my .emacs file? C-h k C-x C-o will tell you waht function is bound to C-x C-o. (global-set-key (kbd "C-a") 'that-function) in you ~/.emacs will bind C-a to that function. Here, C-x C-o is bound to delete-blank-lines, so: (global-set-key (kbd "C-a") 'delete-blank-lines) You can activate it immediately typing C-x C-e after it. -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.