From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Which modifier to use? Date: Sat, 05 Dec 2020 15:55:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32726"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help GNU Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 15:57:00 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 1klYza-0008MD-UI for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 15:56:59 +0100 Original-Received: from localhost ([::1]:53618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klYzZ-0002MX-Ut for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 09:56:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klYyh-0002MM-0Z for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 09:56:03 -0500 Original-Received: from mail-db8eur06olkn2108.outbound.protection.outlook.com ([40.92.51.108]:25089 helo=EUR06-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klYye-0006i4-Bk for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 09:56:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ki2CHyGm23frq8VKWLd7rYvcqU87v/UnGWsQx1Na6GdU8HMLTRqvlCzOR5B2UWp0ePybyA79GGA4vyUiFcsmgzCz8VkDJZF5RsGEyqrhzTBGAKzm9TYbwEMUqVF9SHoxLBq9WHj7w3a8sn8ZWTJ06KjgxvpSt3W/ErC0LZj0CrXIjRkBNEoRTRNDX2r0A+gjWPGQqyFRtPOgFhYW2kw8qtXEE5opaywnGFEmZZFqre25L7i4GmhzUv82jkGH2Tocr4LPFuFnEzRCaEnHJcLQzAry2all20U/oY8H9sDclsN3WA41qlwAapuINf25fk7Zp41lSVE34gSmS3Q8oLW0Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fwq+3D5uCSWssI8kldc9RKii0S/UWEUmfzmh8f426Bs=; b=Y3/57t6OYp4rUlNqrokzdYu0aW6nM6ek4g1118ma5MCu+cspCAL5gx6u6ym7rdm0n70SNi0qsKlHGkeio03vWckRwhVBjv7/aU3/KUkwy/PkZmOrBhq4ulQ0Sq/Yk83kGJJ/1N3LqsT1CbmyTYG2E0Zihhcy4bJKPLIIQqsLusHU3EW4OmTQP/Wc8Z3i+2yEhsurGGl2PEvi0pgzYIT5f6igc6bLYDR6c4pP2SaYr5TIlY//cyn9NEYRBcZYRiBwaMTCI4pydk+ZjovoRFI1ku/bACrKcRNeVo0V2XnJTglhmD+sNzfyoceo+jfByZ1pony3KllKV3iJ1Z3FPM3ZOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fwq+3D5uCSWssI8kldc9RKii0S/UWEUmfzmh8f426Bs=; b=nnn2gVWqHUzCPElmpOPFFDm0z2HJYQE1TUMmASK8qfBXbmpXjmSvX1Dgnucp9FhZSgpG9ROKX20sgj++w6gjyCMIEybbQVADqGpcSNpSC6SjtDn6QLfIY7yVh7LRt3CNy9MyBDxwl8FdgCZUfiziD1S3tWVcg7VDqnUmfrZCdnYvmP86opyHqVN/xaM61uryqPyiaMA6i2vEyOAWyfk0R5xogyj9r6lFDeZ6vRO5pa0nZIpZ+OwUnZH2ZxHL2R3DqZYn0MrBdwsoJfuLjthvPIb8fsvfjpkknaOzU1Q758TI0+CoyxaYiAmIbPISzTSJYD06DXJoRwz2sPrHkCWvwg== Original-Received: from DB8EUR06FT014.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::51) by DB8EUR06HT094.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::491) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Sat, 5 Dec 2020 14:55:57 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc35::43) by DB8EUR06FT014.mail.protection.outlook.com (2a01:111:e400:fc35::116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sat, 5 Dec 2020 14:55:57 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:68F9060C87F3BBFCD24A1A49C9D5F46EFA1E5C15B4CE09B4440303E6DF141E85; UpperCasedChecksum:531961F1A16EEFF4417B003C150562539C04921903D16957098EFE3801DEC5DE; SizeAsReceived:7418; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3632.018; Sat, 5 Dec 2020 14:55:57 +0000 In-Reply-To: (Jean Louis's message of "Sat, 05 Dec 2020 14:28:05 +0300") X-TMN: [2JQzjsPF022kne+yBqc5LUEjs42HG1vs] X-ClientProxiedBy: AS8PR04CA0082.eurprd04.prod.outlook.com (2603:10a6:20b:313::27) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <878sacjo8z.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AS8PR04CA0082.eurprd04.prod.outlook.com (2603:10a6:20b:313::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sat, 5 Dec 2020 14:55:57 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 18b74ce7-a749-424a-0683-08d8992ddf47 X-MS-TrafficTypeDiagnostic: DB8EUR06HT094: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: At84Tz7glYVkN1ZW0nCO83a4xoxC/vHSgmt4qfH/Db9kPeof2NWvM4sd2yzY+VVeW8Y0qwNRgN5fuYnfkUE6MzDqplGVI+EwfLTBZdW5XD2hlIXoCosX2zeJEo5/E/TbhpmRcU751nlE4GS4+WGm83/eAHY5nqMu7VVKqdor0A8OIYqAQGmQx31mAEZbNfBhLtmBoSSI2fuHTwlDdt695Q== X-MS-Exchange-AntiSpam-MessageData: W4pYcdL/TTb9v/oeMO9hUkLdyLcg9k292UkiQvZmDkq3Wx4+a7iabDcfP9l+9fIXp8jaz6BPGsCpXz7VUAvOYRhDxzSzSdPblcUisJWXHgiC0DzYSj5weIuX+Rfj6iNFpy9ESwznjHGdHOI1WEnJWg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18b74ce7-a749-424a-0683-08d8992ddf47 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2020 14:55:57.7669 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR06FT014.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT094 Received-SPF: pass client-ip=40.92.51.108; envelope-from=arthur.miller@live.com; helo=EUR06-DB8-obe.outbound.protection.outlook.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:126027 Archived-At: Jean Louis writes: > I have too many keys on Hyper modifier and need a keys for many > functions. Emacs is mostly not modal and I am not using viper mode, > but as modal it would offer me quick access to key bindings such as: > > - / a > - / s > > Maybe CapsLk can be used as modifier or prefix key? Have you considering using your own prefix? I am using C-z C-v and C-f as prefixes (C-f is a bit questionable :-)): (define-prefix-command 'C-z-map) (global-set-key (kbd "C-z") 'C-z-map) (define-prefix-command 'C-f-map) (global-set-key (kbd "C-f") 'C-f-map) (global-unset-key (kbd "C-v") That gives me like 3 keyboards of extra keybindings to use, so I can have my own bindings like this: (with-hook after-init (with-key-map global ("M-x" . helm-M-x) ("C-x C-b" . helm-buffers-list) ("C-z a" . helm-ag) ("C-z b" . helm-filtered-bookmarks) ("C-z c" . helm-company) ("C-z d" . helm-dabbrev) ("C-z e" . helm-calcul-expression) ("C-z g" . helm-google-suggest) ("C-z h" . helm-descbinds) ("C-z i" . helm-imenu-anywhere) ("C-z k" . helm-show-kill-ring) ("C-z f" . helm-find-files) ("C-z m" . helm-mini) ("C-z o" . helm-occur) ("C-z p" . helm-browse-project) ("C-z q" . helm-apropos) ("C-z r" . helm-recentf) ("C-z s" . helm-swoop) ("C-z C-c" . helm-colors) ("C-z x" . helm-M-x) ("C-z y" . helm-yas-complete) ("C-z C-g" . helm-ls-git-ls) ("C-z SPC" . helm-all-mark-rings))) (with-key-map global ;; Window-buffer operations ([f1] . term-toggle) ([f2] . term-toggle-eshell) ([f9] . ispell-word) ([S-f10] . next-buffer) ([f10] . previous-buffer) ([f12] . kill-buffer-but-not-some) ([M-f12] . kill-buffer-other-window) ([C-M-f12] . only-current-buffer) ;; Emacs windows ("C-v " . windmove-left) ("C-v " . windmove-right) ("C-v " . windmove-up) ("C-v " . windmove-down) ("C-v o" . other-window) ("C-v s" . z-swap-windows) ("C-v l" . windmove-left) ("C-v r" . windmove-right) ("C-v u" . windmove-up) ("C-v d" . windmove-down) ("C-v C-+" . enlarge-window-horizontally) ("C-v C-," . enlarge-window-vertically) ("C-v C--" . shrink-window-horizontally) ("C-v C-." . shrink-window-vertically) ("C-v -" . winner-undo) ("C-v +" . winner-redo) ("C-v C-k" . delete-window) ("C-v C-l" . kill-window-left) ("C-v C-r" . kill-window-right) ("C-v C-a" . kill-window-above) ("C-v C-b" . kill-window-below) ("C-v " . delete-other-windows) ("C-v ," . split-window-right) ("C-v ." . split-window-below) ;; cursor movement ("M-n" . scroll-up-line) ("M-N" . scroll-up-command) ("M-p" . scroll-down-line) ("M-P" . scroll-down-command) ("C-f n" . next-buffer) ("C-f p" . previous-buffer) ("C-f C-c" . org-capture) ;; emms ("C-v e SPC" . emms-pause) ("C-v e d" . emms-play-directory) ("C-v e l" . emms-play-list) ("C-v e n" . emms-next) ("C-v e p" . emms-previous) ("C-v e a" . emms-add-directory) ("C-v e A" . emms-add-directory-tree) ("C-v e +" . emms-volume-raise) ("C-v e -" . emms-volume-lower) ("C-v e +" . emms-volume-mode-plus) ("C-v e -" . emms-volume-mode-minus) ("C-v e r" . emms-start) ("C-v e s" . emms-stop) ("C-v e m" . emms-play-m3u-playlist) ;; some random stuff ("C-f f" . right-char) ("C-x C-j" . dired-jump) ("C-x 4 C-j" . dired-jump-other-window) ("C-f i" . (lambda() (interactive) (find-file (expand-file-name "init.org" user-emacs-directory))))))