Replace ace-link with link-hint
Better link support, easier to extend, and maintained more actively.
This commit is contained in:
parent
7c968a8b11
commit
a947f64ff2
5 changed files with 14 additions and 15 deletions
|
@ -83,6 +83,7 @@ that works with the feature/popup module."
|
|||
"Open a visible link, username or hashtag in a `twittering-mode' buffer."
|
||||
(interactive)
|
||||
(require 'avy)
|
||||
;; REVIEW Is this necessary anymore with `link-hint'
|
||||
(let ((pt (avy-with +twitter/ace-link
|
||||
(avy--process
|
||||
(+twitter--collect-links)
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
:desc "Search other directory" "D" #'+default/search-other-cwd
|
||||
:desc "Locate file" "f" #'locate
|
||||
:desc "Jump to symbol" "i" #'imenu
|
||||
:desc "Jump to visible link" "l" #'ace-link
|
||||
:desc "Jump to visible link" "l" #'link-hint-open-link
|
||||
:desc "Jump to link" "L" #'ffap-menu
|
||||
:desc "Jump list" "j" #'evil-show-jumps
|
||||
:desc "Jump to mark" "m" #'evil-show-marks
|
||||
|
@ -350,22 +350,22 @@
|
|||
;;; help and info
|
||||
(:after help-mode
|
||||
:map help-mode-map
|
||||
"o" #'ace-link-help
|
||||
"o" #'link-hint-open-link
|
||||
">" #'help-go-forward
|
||||
"<" #'help-go-back
|
||||
"n" #'forward-button
|
||||
"p" #'backward-button)
|
||||
(:after helpful
|
||||
:map helpful-mode-map
|
||||
"o" #'ace-link-help)
|
||||
"o" #'link-hint-open-link)
|
||||
(:after apropos
|
||||
:map apropos-mode-map
|
||||
"o" #'ace-link-help
|
||||
"o" #'link-hint-open-link
|
||||
"n" #'forward-button
|
||||
"p" #'backward-button)
|
||||
(:after info
|
||||
:map Info-mode-map
|
||||
"o" #'ace-link-info)
|
||||
"o" #'link-hint-open-link)
|
||||
|
||||
;;; ivy & counsel
|
||||
(:when (featurep! :completion ivy)
|
||||
|
|
|
@ -61,13 +61,13 @@
|
|||
:i "C-j" #'+default/newline ; default behavior
|
||||
|
||||
(:after help :map help-mode-map
|
||||
:n "o" #'ace-link-help)
|
||||
:n "o" #'link-hint-open-link)
|
||||
(:after helpful :map helpful-mode-map
|
||||
:n "o" #'ace-link-help)
|
||||
:n "o" #'link-hint-open-link)
|
||||
(:after info :map Info-mode-map
|
||||
:n "o" #'ace-link-info)
|
||||
:n "o" #'link-hint-open-link)
|
||||
(:after apropos :map apropos-mode-map
|
||||
:n "o" #'ace-link-help
|
||||
:n "o" #'link-hint-open-link
|
||||
:n "TAB" #'forward-button
|
||||
:n [tab] #'forward-button
|
||||
:n [backtab] #'backward-button)
|
||||
|
@ -583,7 +583,7 @@
|
|||
:desc "Search other directory" "D" #'+default/search-other-cwd
|
||||
:desc "Locate file" "f" #'locate
|
||||
:desc "Jump to symbol" "i" #'imenu
|
||||
:desc "Jump to visible link" "l" #'ace-link
|
||||
:desc "Jump to visible link" "l" #'link-hint-open-link
|
||||
:desc "Jump to link" "L" #'ffap-menu
|
||||
:desc "Jump list" "j" #'evil-show-jumps
|
||||
:desc "Jump to mark" "m" #'evil-show-marks
|
||||
|
|
|
@ -25,9 +25,7 @@
|
|||
avy-all-windows-alt t
|
||||
avy-background t
|
||||
;; the unpredictability of this makes it a poor default
|
||||
avy-single-candidate-jump nil
|
||||
;; Since `goto-address-mode' is enabled everywhere...
|
||||
ace-link-fallback-function #'ace-link-addr)
|
||||
avy-single-candidate-jump nil)
|
||||
|
||||
|
||||
(after! epa
|
||||
|
@ -67,7 +65,7 @@
|
|||
;; (sp-pair "{" nil :post-handlers '(:rem ("| " "SPC")))
|
||||
(after! smartparens
|
||||
;; Smartparens is broken in `cc-mode' as of Emacs 27. See
|
||||
;; <https://github.com/Fuco1/smartparens/issues/963>.
|
||||
;; https://github.com/Fuco1/smartparens/issues/963.
|
||||
(unless EMACS27+
|
||||
(pushnew! sp--special-self-insert-commands 'c-electric-paren 'c-electric-brace))
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
;;; config/default/packages.el
|
||||
|
||||
(package! avy)
|
||||
(package! ace-link)
|
||||
(package! drag-stuff)
|
||||
(package! link-hint)
|
||||
|
||||
(unless (featurep! :editor evil)
|
||||
(package! expand-region))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue