summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-05-18 21:22:22 -0400
committerKyle Meyer <kyle@kyleam.com>2015-05-18 21:22:22 -0400
commit9fe614b04208cdf9a8470afbe76fffcbf32c63e9 (patch)
tree58f8ba9f546a89d4580e2e046bd9ac4ed4578491
parent7f001466049484bbdbb3b4b7a4dc672320f057a6 (diff)
downloademacs.d-9fe614b04208cdf9a8470afbe76fffcbf32c63e9.tar.gz
Update ace-link-dired for upstream changes
-rw-r--r--lisp/init-ace.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/init-ace.el b/lisp/init-ace.el
index 3aeb3b0..db1a514 100644
--- a/lisp/init-ace.el
+++ b/lisp/init-ace.el
@@ -11,9 +11,13 @@
(defun km/ace-link-dired ()
"Ace jump to files in dired buffers."
(interactive)
- (ali-generic
- (km/ali--dired-collect-references)
- (org-open-file (dired-get-filename))))
+ (let ((res (avy--with-avy-keys km/ace-link-dired
+ (avy--process
+ (km/ali--dired-collect-references)
+ #'avy--overlay-pre))))
+ (when res
+ (goto-char res)
+ (org-open-file (dired-get-filename)))))
(defun km/ali--dired-collect-references ()
(let ((end (window-end))