From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: isearch key bindings [was: Why function behaves differently when bound to different key combo?] Date: Sat, 29 Nov 2008 18:38:42 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <6daf5632-fd9e-4ade-a2d3-b23ca738f9da@r37g2000prr.googlegroups.com> <52652ad0-4657-49d4-ab3e-5066de443801@o40g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228030923 13062 80.91.229.12 (30 Nov 2008 07:42:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2008 07:42:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 30 08:43:09 2008 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 1L6gxQ-0000kb-Cq for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 08:43:08 +0100 Original-Received: from localhost ([127.0.0.1]:57444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6gwG-0004uS-Ex for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 02:41:56 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d42g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1228012722 23278 127.0.0.1 (30 Nov 2008 02:38:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 30 Nov 2008 02:38:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d42g2000prb.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164920 X-Mailman-Approved-At: Sun, 30 Nov 2008 02:39:57 -0500 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:60249 Archived-At: On Nov 28, 12:54 pm, Alan Mackenzie wrote: > > (global-set-key (kbd "M-s") 'isearch-forward) > > (global-set-key (kbd "M-S") 'isearch-backward) > > Yes, but why would anybody want M-s to be isearch? isearch is one of the most frequently used command (roughly within top 15). See: =E2=80=A2 Emacs's Command Frequency http://xahlee.org/emacs/command-frequency.html under my ergonomic keybinding map, frequently used keys are on home row. So, isearch is on homerow, and it happens to be on key for the right pinky. On dvorak, that's s. I pulled the code example from my map, so that's how it's is s. =E2=80=A2 A Ergonomic Keyboard Shortcut Layout For Emacs http://xahlee.org/emacs/ergonomic_emacs_keybinding.html > If you put that functionality inisearch-mode-hook, you'll rebind these > keys EVERY time you start anisearch. I suppose, with the power of > modern PCs, you won't notice too much, but the cells in theisearchkey > map might get a little worn out. :-) Thanks. I haven't thought of that. I'll have to make it minor mode soon. > > PS when you look intoisearch'smap, you'll notice that it defines > > quite a lot other features/shortcuts. I'd say, 90% of them are never > > used once for those who have 4 years of emacs experience . For veteran > > emacs diehards, say those who used emacs over 10 years, if i can make > > a guess with my 10 years of daily emacs use and observation of other > > emacs users, i'd say 50% of the shortcuts provided byisearchare > > never used once in their life. > > I think you're very wrong there. Different users will use different > subsets of them, but do feel free to try to identify those which are > never used. I think you'd be surprised. Alan, do you have accumalated more keystroke for the stat? the best way to objectively find out what commands are actually most frequently used, is thru the stat program. If you could, please tell your friends, and other developers on the emacs list to try the command frequency.el. http://xahlee.org/emacs/command-frequency.el when we have a the stat from lots people, then a good look on emacs keybinding can be had. Xah =E2=88=91 http://xahlee.org/ =E2=98=84