[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/xah-fly-keys 7e0d33170c: xah-fly-command-mode-activate now
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/xah-fly-keys 7e0d33170c: xah-fly-command-mode-activate now bound to <escape> too. (works in gui emacs only.) reason: |
Date: |
Sat, 18 Mar 2023 23:02:11 -0400 (EDT) |
branch: elpa/xah-fly-keys
commit 7e0d33170c05ed3fe364430df7e8cdb4a36bfd70
Author: Xah Lee <xah@xahlee.org>
Commit: Xah Lee <xah@xahlee.org>
xah-fly-command-mode-activate now bound to <escape> too. (works in gui
emacs only.) reason:
advantage of making esc key do activate command mode:
- familiar to most people
- one less key. (if you use home key, it's an extra key on your physical
keyboard but otherwise the Home key function isn't much used these days.)
disadvantage:
- esc by default is at hard to press spot. induces Repetitive Strain Injury.
- by emacs quirk, <escape> means esc key in gui mode only. while ESC means
esc key in both gui and terminal, but binding ESC, will break arrow keys and f1
f2 etc keys, due to how terminal works (terminal keys are actually esc
sequences).
in the end, i decided to bind it. you should esc key position on your
keyboard capslock position, or, when pressing esc on the left corner, don't
twist your wrist, but move whole hand to it. and, when in terminal, no choice
but to press other keys to activate command mode, such as M-SPC.
---
xah-fly-keys.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/xah-fly-keys.el b/xah-fly-keys.el
index 787908f333..0bd988f5a5 100644
--- a/xah-fly-keys.el
+++ b/xah-fly-keys.el
@@ -4,7 +4,7 @@
;; Author: Xah Lee ( http://xahlee.info/ )
;; Maintainer: Xah Lee <xah@xahlee.org>
-;; Version: 23.0.20230310115257
+;; Version: 23.1.20230318191051
;; Created: 10 Sep 2013
;; Package-Requires: ((emacs "24.1"))
;; Keywords: convenience, emulations, vim, ergoemacs
@@ -25,9 +25,9 @@
;; Important command/insert mode switch keys:
-;; xah-fly-command-mode-activate (press <home> or F8 or Alt+Space or
Ctrl+Space or menu key)
+;; `xah-fly-command-mode-activate' (press <escape> or <home> or F8 or
Alt+Space or Ctrl+Space or menu key. Note: escape only works when in GUI mode,
by design.)
-;; xah-fly-insert-mode-activate (when in command mode, press qwerty letter key
f.)
+;; `xah-fly-insert-mode-activate' (when in command mode, press qwerty letter
key f.)
;; When in command mode:
@@ -2598,7 +2598,7 @@ Backup filename is “‹name›~‹dateTimeStamp›~”. Existing
file of the s
Call `xah-open-last-closed' to open the backup file.
URL `http://xahlee.info/emacs/emacs/elisp_delete-current-file.html'
-Version: 2018-05-15 2021-08-31 2021-09-27 2022-07-08"
+Version: 2018-05-15 2021-08-31 2021-09-27 2022-07-08 2023-03-15"
(interactive)
(if (string-equal 'dired-mode major-mode)
(message "In dired. Nothing is done.")
@@ -2616,8 +2616,10 @@ Version: 2018-05-15 2021-08-31 2021-09-27 2022-07-08"
(delete-file xfname))
(progn
(widen)
- (kill-new (buffer-string))))
- (kill-buffer (current-buffer)))))
+ (kill-new (buffer-string))))
+ (kill-buffer (current-buffer))
+ (when (eq major-mode 'dired-mode)
+ (revert-buffer)))))
@@ -3056,6 +3058,7 @@ Version 2022-10-31"
xah-fly-shared-map
'(("<home>" . xah-fly-command-mode-activate)
("<menu>" . xah-fly-command-mode-activate)
+ ("<escape>" . xah-fly-command-mode-activate)
("<f8>" . xah-fly-command-mode-activate))
:direct)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/xah-fly-keys 7e0d33170c: xah-fly-command-mode-activate now bound to <escape> too. (works in gui emacs only.) reason:,
ELPA Syncer <=