From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: Doc of keyboard macros Date: Sun, 14 Oct 2018 10:28:03 +0200 Message-ID: <87k1ml9bl8.fsf@mbork.pl> References: <835zyuc457.fsf@gnu.org> <834leec2s2.fsf@gnu.org> <83va6uakoi.fsf@gnu.org> <8736ty4s4o.fsf@mail.linkov.net> <83k1naadtf.fsf@gnu.org> <871s9i7irm.fsf@fastmail.fm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539505693 19954 195.159.176.226 (14 Oct 2018 08:28:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2018 08:28:13 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Joost Kremers , Eli Zaretskii , emacs-devel@gnu.org, monnier@iro.umontreal.ca, juri@linkov.net To: Mathias Dahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 14 10:28:08 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBbku-00051X-Iw for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2018 10:28:08 +0200 Original-Received: from localhost ([::1]:47575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBbmv-0000ae-VS for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2018 04:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBbmM-0000aX-9W for emacs-devel@gnu.org; Sun, 14 Oct 2018 04:29:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBbmL-0002Bf-73 for emacs-devel@gnu.org; Sun, 14 Oct 2018 04:29:38 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:34546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBbmF-00028p-G5; Sun, 14 Oct 2018 04:29:32 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 90E6BE6AF0; Sun, 14 Oct 2018 10:29:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SqUX-p-0EfLz; Sun, 14 Oct 2018 10:29:22 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 8504FE68C0; Sun, 14 Oct 2018 10:29:22 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230375 Archived-At: On 2018-10-10, at 22:25, Mathias Dahl wrote: >> >> I think that's debatable. Personally, if I want to hit a function >> key, I need to move my hand from the home row to reach for it, and >> I need to look at the keyboard to do it.... >> >> So hitting `C-x (` is definitely faster for me and requires no >> conscious action, quite unlike the function keys. I never use >> F3/F4 to define keyboard macros. >> >> In fact, I never quite understood why (some) function keys have >> default bindings at all in Emacs. To me, function keys are as >> cumbersome as cursor keys, Home/End, or PgUp/PgDn.[2] Not that I >> mind, of course, it's just puzzling to me. >> > > Hi, > > Just to contrast the above, I'm a heavy user of the function keys in Emacs. > During the years, I have bound F1-F9 to some of my most used commands. Interesting. > There's almost no logic at all in how they are setup but they are hard > wired in my brain by now and must be there. Not that I think anyone is > interested, but here they are, in order: > > F1 - Switch to previous buffer (my most used command/key). This and kill > buffer on F5 was inspired by something Alex Schroeder once wrote about on > Emacswiki. > F2 - Other window > F3 - Anything (yup, never got around switching to Helm, or Ivy for that > matter), mostly with a bunch of super custom sources and commands > F4 - For some reason, this is untouched... > F5 - Kill buffer (no questions if buffer is saved), beeps if the buffer is > changed. I use this a lot. > F6 - Strip trailing spaces > F7 - Start kbd macro (this was before F3 was bound to that). I use C-x ( > and C-x ) when I don't have my own setup or is using Emacs -Q for some > other reason... > F8 - Stop and/or execute kbd macro > F9 - Toggle truncate lines I also use some function keys. F3/F4 - default (keyboard macros). I like these bindings a lot (especially F3 when recording a macro). F6 - see here http://mbork.pl/2017-06-12_smart-next-window-or-buffer F8 - my hydra with various stuff (like git blame, git timemachine, Emacs uptime, woman, switching between 1- and 2-monitor setup, toggle a few minor modes, ffap... F10 - my hydra with Org-related stuff (mainly clocking) F12 - my hydra for emms Best, -- Marcin Borkowski http://mbork.pl