Skip to content

Commit

Permalink
[emacs] Replace ace-jump with avy-goto-char
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Jun 1, 2024
1 parent cd52bd2 commit 2c710e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 7 additions & 1 deletion emacs/custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,10 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(ace-jump-mode apache-mode ascii-art-to-unicode auto-compile auto-dim-other-buffers auto-package-update bison-mode browse-kill-ring csv-mode form-feed gitattributes-mode gitconfig-mode gitignore-mode gnu-elpa-keyring-update gnus-alias google-c-style haskell-mode magit magit-filenotify markdown-mode multiple-cursors notmuch num3-mode rust-mode sed-mode shift-number typescript-mode)))
'(apache-mode ascii-art-to-unicode auto-compile auto-dim-other-buffers
auto-package-update avy bison-mode browse-kill-ring csv-mode
dash-functional evil form-feed gitattributes-mode gitconfig-mode
gitignore-mode gnu-elpa-keyring-update gnus-alias google-c-style
haskell-mode magit magit-filenotify markdown-mode
multiple-cursors notmuch num3-mode protobuf-mode rust-mode s
sed-mode shift-number typescript-mode)))
14 changes: 6 additions & 8 deletions emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ modified beforehand."
(add-lambda-hook 'compilation-filter-hook
(ansi-color-apply-on-region compilation-filter-start (point)))

;; ISearch mode ace-jump-mode
;; Search and jumping

(set-key isearch-mode-map [(f1)] isearch-mode-help)
(set-key isearch-mode-map [(f1)] isearch-describe-mode)
(set-key isearch-mode-map "\C-t" isearch-toggle-regexp)
(set-key isearch-mode-map "\C-c" isearch-toggle-case-fold)
(set-key isearch-mode-map "\C-j" isearch-edit-string)
Expand All @@ -610,13 +610,11 @@ modified beforehand."

(setq search-whitespace-regexp "[ \t\r]+")

(autoload 'ace-jump-mode "ace-jump-mode" "Emacs quick move minor mode" t)
(set-key "\M-s" ace-jump-mode)
(set-key "\M-s" avy-goto-char-timer)
(setq-default
ace-jump-mode-scope 'window
ace-jump-mode-case-fold nil
ace-jump-mode-move-keys
(string-to-list "htnsueoagcrlp.,;mwvzkjq'difybx/-\\@#)(+}]{![*=&$"))
avy-background t
avy-timeout-seconds 0.3
avy-keys (string-to-list "htnsueoagcrlp.,;mwvzkjq'difybx/-\\@#)(+}]{![*=&$"))

;; Copy/Kill

Expand Down

0 comments on commit 2c710e2

Please sign in to comment.