From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Help with setting a key (C- moving a full word to the right) Date: Fri, 07 Jun 2013 12:56:04 +0530 Message-ID: <87ppvy1iwj.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370589969 16412 80.91.229.3 (7 Jun 2013 07:26:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 07:26:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Max Rubin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 07 09:26:04 2013 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 1Ukr3j-0003DI-H0 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 09:26:03 +0200 Original-Received: from localhost ([::1]:53197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukr3j-0006hE-4g for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 03:26:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukr3Q-0006h9-Dd for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 03:25:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukr3M-0008VQ-I3 for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 03:25:44 -0400 Original-Received: from mail-pd0-f177.google.com ([209.85.192.177]:33819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukr3M-0008VJ-CF for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 03:25:40 -0400 Original-Received: by mail-pd0-f177.google.com with SMTP id u10so4416899pdi.22 for ; Fri, 07 Jun 2013 00:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=m/m8xFRyrX6cs5vztjTqftQ/ZQrPZyFqjxKDV+buxJE=; b=OKYaX5eXxE0eIhpTrCsA+5EWG5bSbfztgn3F1P/oTAjcNfscE0Jh8b1+PFlaNngVtL uJ2WmdFc1HvwC+BazSZW2uIg/ahFhU3y0++DkHUsnJvJEjZIMVKKVBh37NX0RXhXBZKm gbsQ7qXagYEtWvNL9+NRidOutfwDTdW0fgfiVJKAtYxIQRQ6BvgqdbKILYYSuKeGBB5C GW8xaGpIdQkXJOwUXVCmslFQZ5n/fRxaqiFJxzxrjTMUL+iSJyjCCr93vDAFdfJSSvHM RH80n9mytSq53Ll7lgJXyWqcryZnAtRu1hmORdPYmSSchhKvOTV2rG3xBpDWHMOCjSUh GbiQ== X-Received: by 10.66.27.196 with SMTP id v4mr1431152pag.97.1370589939541; Fri, 07 Jun 2013 00:25:39 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.132.236]) by mx.google.com with ESMTPSA id pb5sm75975940pbc.29.2013.06.07.00.25.36 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 07 Jun 2013 00:25:38 -0700 (PDT) In-Reply-To: (Max Rubin's message of "Thu, 6 Jun 2013 23:20:26 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.177 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:91369 Archived-At: Do M-x global-set-key RET and do whatever Emacs asks you to do. Once that is done do, M-x list-command-history RET and you will some thing like this: (global-set-key [C-right] (quote forward-word)) Copy that to your .emacs. You are done. Max Rubin writes: > Hey there helpful listservers! > > I only discovered today that you can edit your .emacs file and add in > custom keys and change the settings, and I've unfortunately run into a > problem. I want ctrl+right arrow to move forward one whole word at a time, > and ctrl+left arrow to move back a whole word at a time. The keys M-f and > M-b already do this using 'forward-word and 'backward-word, but I cannot > figure out how represent C+. I've tried " > (global-set-key (kbd "C-") 'forward-word " but that doesn't work. > In fact, no key name that exists in angle brackets (, , , > ) work. If I changed it to " (global-set-key (kbd "C-l") > 'forward-word ", then it works as expected, so my computer is definitely > not comprehending the angle bracket keys. > > Anyone know what is wrong and how to fix it? > > Thank you, > Max