Fix ace-link for spacemacs buffer
This commit is contained in:
parent
be0fa7ed75
commit
f549b02723
|
@ -154,10 +154,14 @@
|
||||||
(defun spacemacs/ace-buffer-links ()
|
(defun spacemacs/ace-buffer-links ()
|
||||||
"Ace jump to links in `spacemacs' buffer."
|
"Ace jump to links in `spacemacs' buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(ali-generic
|
(let ((res (avy--with-avy-keys spacemacs/ace-buffer-links
|
||||||
|
(avy--process
|
||||||
(spacemacs//collect-spacemacs-buffer-links)
|
(spacemacs//collect-spacemacs-buffer-links)
|
||||||
(forward-char 1)
|
#'avy--overlay-pre))))
|
||||||
(widget-button-press (point)))))))
|
(when res
|
||||||
|
(goto-char (1+ res))
|
||||||
|
(widget-button-press (point))))))))
|
||||||
|
|
||||||
|
|
||||||
(defun spacemacs/init-ace-window ()
|
(defun spacemacs/init-ace-window ()
|
||||||
(use-package ace-window
|
(use-package ace-window
|
||||||
|
|
Loading…
Reference in a new issue