diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-12-13 12:23:19 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-12-13 12:23:19 +0000 |
commit | ac04afe0e8789c271d3fd065e112249fcfb6c9de (patch) | |
tree | 237c7be728d64e207e1d1b91345247f4fb614714 | |
parent | eb6014440cebce8ade1034f8d09ad98cdfe32ee0 (diff) | |
download | dotfiles-ac04afe0e8789c271d3fd065e112249fcfb6c9de.tar.gz |
Try a keybinding experiment
-rw-r--r-- | .emacs.d/lisp/init-navigation.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-navigation.el b/.emacs.d/lisp/init-navigation.el index e178d70..b407e7b 100644 --- a/.emacs.d/lisp/init-navigation.el +++ b/.emacs.d/lisp/init-navigation.el @@ -7,6 +7,13 @@ (avy-all-windows nil) (avy-all-windows-alt t) (avy-timeout-seconds 0.3) + :init + ;; Allow C-[ to be bound (instead of being equivalent to ESC), but only in GUI Emacs + ;; https://emacs.stackexchange.com/a/52334 + (let ((frame (framep (selected-frame)))) + (or (eq t frame) + (eq 'pc frame) + (define-key input-decode-map (kbd "C-[") [control-bracketleft]))) :config ;; https://karthinks.com/software/avy-can-do-anything/#avy-plus-embark-any-action-anywhere (defun avy-action-embark (pt) @@ -38,7 +45,7 @@ ("C-c C-;" . avy-copy-as-kill-in-line)) (use-package casual-avy - :bind ("C-M-;" . casual-avy-tmenu)) + :bind ([control-bracketleft] . casual-avy-tmenu)) (use-package smartscan :custom (smartscan-symbol-selector "symbol") |