summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2025-02-17 02:27:48 +0800
committernoa2025-02-17 02:27:48 +0800
commitc893e67b3c0c593fff9f4e5898a12ec6f1976bf4 (patch)
tree12fe5dd43b94e53e0f1bdf6705dec71570247553 /emacs
parent62ec822532f2285bb51dae07ba8618b0d3a0e80f (diff)
Add M-j for avy binding
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index a6b5777..a915914 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -615,6 +615,14 @@ With prefix argument TIME, also add the current time."
   (isearch-repeat-on-direction-change t)
   (isearch-wrap-pause 'no))
 
+(use-package avy
+  :bind (("M-j" . avy-goto-char-timer)
+	 :map isearch-mode-map
+	 ("M-j" . avy-isearch))
+  :custom
+  (avy-keys (number-sequence ?a ?z))
+  (avy-timeout-seconds 0.2))
+
 ;; Make window management commands easier to press
 (use-package ace-window
   :bind ([remap other-window] . ace-window))