From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: C-p, C-b, C-f, and C-n... why? Date: Tue, 13 Dec 2005 08:27:12 -0900 Message-ID: <20051213172712.GW1806@johnsons-web.com> References: <1133329096.909577.80790@g43g2000cwa.googlegroups.com> <11pmkm7sol448a9@corp.supernews.com> <439e8cb9$0$15785$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134497909 25236 80.91.229.2 (13 Dec 2005 18:18:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 18:18:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 19:18:25 2005 Return-path: Original-Received: from [199.232.75.2] (helo=lists.gnu.org) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmEfm-000518-5f for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Dec 2005 19:14:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmEgK-0005CR-Fi for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Dec 2005 13:15:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmDv7-0003wj-94 for help-gnu-emacs@gnu.org; Tue, 13 Dec 2005 12:26:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EmDv5-0003vY-80 for help-gnu-emacs@gnu.org; Tue, 13 Dec 2005 12:26:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmDv4-0003vN-Uz for help-gnu-emacs@gnu.org; Tue, 13 Dec 2005 12:26:31 -0500 Original-Received: from [208.218.214.44] (helo=ns3.cniweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EmDx0-0000Oa-7L for help-gnu-emacs@gnu.org; Tue, 13 Dec 2005 12:28:30 -0500 Original-Received: from linus.johnson.com (rdbck-static-445.palmer.mtaonline.net [64.4.232.191]) by ns3.cniweb.net (8.13.5/8.13.5) with ESMTP id jBDHPeE7006555 for ; Tue, 13 Dec 2005 12:25:41 -0500 (EST) Original-Received: from linus.johnson.com (localhost.johnson.com [127.0.0.1]) by linus.johnson.com (8.12.8/8.12.8) with ESMTP id jBDHRCwr013973 for ; Tue, 13 Dec 2005 08:27:12 -0900 Original-Received: (from tim@localhost) by linus.johnson.com (8.12.8/8.12.8/Submit) id jBDHRCvj013971 for help-gnu-emacs@gnu.org; Tue, 13 Dec 2005 08:27:12 -0900 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Tim Johnson , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <439e8cb9$0$15785$14726298@news.sunsite.dk> User-Agent: Mutt/1.4.2.1i 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 X-Broken-Reverse-DNS: no host name found for IP address 199.232.75.2 Xref: news.gmane.org gmane.emacs.help:31929 Archived-At: * Ralf Angeli [051213 00:13]: > * Mathias Dahl (2005-12-13) writes: > > > Also, can you seriously say that, when doing complicated cursor > > movements (imagine navigating around in a crossword or minesweeper > > game or similar "grid2), that C-f, C-b, C-n and C-p allows for quicker > > movement? > > It doesn't necessarily have to be a game. More complicated movements > occur all the time. And those are situations I yearn for bindings > e.g. with w, a, s, d. well, you can do that. As I'm finding out, you can do almost anything with emacs. I've reprogrammed my keyboard. Currently, control is to the left of "a" hyper is right above control alt is on either side of my spacebar super is to the left of the alt-left TAB is to the right of alt-right. Adding the two extra modifier (which may not be available on MS-Windows) has opened up a huge number of possibilities and functionality. Example: Super-n = next subroutine Super-p = previous subroutine Super-b = previous class Super-f = next class etc, etc. Relocating the control and hyper keys makes combinations really, really nimble. As far as a grid, as opposed to writing a whole new mode, (say for crosswords, why couldn't one write a defun to reset keys on an adhoc basis?) The trick is remembering all of this. But then I know people who speak more than one language :-) lots of them actually. For linux users, here's my .xmodmaprc: tj ! start ! ! activate with xmodmap ~/.xmodmaprc ! clear Shift clear Lock clear Control clear Mod1 clear Mod2 clear Mod3 clear Mod4 clear Mod5 ! Swap Capslock and Left Control Key remove Lock = Caps_Lock remove Control = Control_L keycode 66 = Control_L keycode 37 = Caps_Lock add Lock = Caps_Lock add Control = Control_L ! assign left super key to windows key keycode 115 = Super_L ! assign left hyper key to tab key keycode 23 = Hyper_L ! assign tab to right control key keycode 109 = Tab ! assign right meta key to right alt key !keycode 113 = Meta_R ! reset bits add Shift = Shift_L Shift_R add Lock = Caps_Lock add Control = Control_L add Mod1 = Alt_L Alt_R add Mod2 = Num_Lock add Mod3 = Super_L add Mod5 = Hyper_L !!! done > -- > Ralf > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs -- Tim Johnson http://www.alaska-internet-solutions.com