From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: TRS-80 Newsgroups: gmane.emacs.help Subject: Re: Which modifier to use? Date: Sat, 05 Dec 2020 16:29:39 -0500 Message-ID: <2d40cc5817c659d9d4b502fc359f6c12@isnotmyreal.name> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23008"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail/1.3.15 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 22:30:27 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klf8N-0005tW-BB for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 22:30:27 +0100 Original-Received: from localhost ([::1]:51430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klf8M-0005qz-D9 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 16:30:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klf7j-0005nc-RQ for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 16:29:47 -0500 Original-Received: from server173-4.web-hosting.com ([68.65.122.210]:43559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klf7h-0004qM-Cj for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 16:29:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ecgCIk3nR3BGaFi5SR/n0QUnWo6R5mZLPfLnNPyFLBU=; b=fcT/Xi5FUS55ujcd+Sh4ZaFSTl TLjlVNQrjkxKtJIY8qa+R4sNJRtzzkGezpx/uC5pPtuPdG8TlsFLsQ9YqpXCq1yfTam5RnKcAnoxa k8b2mjcjIp0g6xC7+3Z45HeIS+ORo/eYEiQjnR74wofgSTvNbuC0IHtyCE3gbRbXCmu70qDj07bjI ehH17KdEvEPBR/AB5plxG5gkQ7gOA5zovTfxNW985VqkKuZgq84uBlmOSpRxdUkb6zv82igbK3Sjj zNtANDvhO05ms9wpCGanCXdvxWG0wcQulTAQXNo94Tedrg5AZUxhN+6wr2Qny0WrD/27Uu5Wvc2c9 2YF4FJmA==; Original-Received: from [::1] (port=55070 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1klf7b-004Jvl-Fg for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 16:29:43 -0500 In-Reply-To: X-Sender: lists.trs-80@isnotmyreal.name X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126045 Archived-At: > On 2020-12-05 10:03, Arthur Miller wrote: > > I leave Super to my window manager and xbindkeys; and all other > modifiers go to applications. It is a rule. Makes life easier if you > switch between Windows and GNU/Linux Luckily I can avoid Windoze nearly 100% of the time nowadays, however I still follow this rule and think it's a great idea, anyway. I use i3 (wm) and have lots of custom keybindings at the OS/WM level, they are all based on using Super as modifier. So, in my mind, Super (aka "Win") has to do with window manager. Inside Emacs, I also group related keybindings behind a sort of "leader" key, for example (dk here is alias for define-key, stricty to shorten these lines so I can keep nice formatting): (dk global-map (kbd "C-c y") '("Yankpad" . nil)) (dk global-map (kbd "C-c y c") '("Capture" . yankpad-capture-snippet)) (dk global-map (kbd "C-c y e") '("Edit" . yankpad-edit)) (dk global-map (kbd "C-c y i") '("Insert" . yankpad-insert)) (dk global-map (kbd "C-c y r") '("Reload" . yankpad-reload)) (dk global-map (kbd "C-c y R") '("Repeat" . yankpad-repeat)) (dk global-map (kbd "C-c y s") '("Set (local) category" . yankpad-set-local-category)) (dk global-map (kbd "C-c y S") '("Set (global) category" . yankpad-set-category)) I think it is little known that you can define keys in this way, I learned it while setting up which-key. If you use that package, the car of the alist will appear as the description, allowing you to create sort of poor man's menu system. :) Cheers, TRS-80