branch: elpa/casual
commit 9c3971b760014835aa2f8482aab2863c6dc8d2e8
Merge: 501598448a f0976da0f5
Author: Charles Choi <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #169 from
kickingvegas/167-change-open-file-command-to-find-file-at-point
Change "Open file…" in EditKit to use ffap
---
lisp/casual-editkit.el | 2 +-
tests/test-casual-editkit.el | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/casual-editkit.el b/lisp/casual-editkit.el
index cf00c99cdd..6487f4df17 100644
--- a/lisp/casual-editkit.el
+++ b/lisp/casual-editkit.el
@@ -48,7 +48,7 @@ It can be used as-is or serve as a template for building a
user-customized menu."
[["File"
("o" "Open›" casual-editkit-open-tmenu)
- ("f" "Open file…" find-file)
+ ("f" "Open file…" find-file-at-point)
("d" "Open in Dired" dired-jump-other-window
:if (lambda () (buffer-file-name)))
("b" "List Buffers" ibuffer)
diff --git a/tests/test-casual-editkit.el b/tests/test-casual-editkit.el
index 5d0ecff5b9..d6417df292 100644
--- a/tests/test-casual-editkit.el
+++ b/tests/test-casual-editkit.el
@@ -35,7 +35,7 @@
((symbol-function
#'casual-editkit-package-symbol-overlay-installed-p) (lambda () t))
((symbol-function #'casual-editkit-package-magit-installed-p)
(lambda () t))
((symbol-function #'display-graphic-p) (lambda (&optional d) t))
- (casualt-mock #'find-file)
+ (casualt-mock #'find-file-at-point)
(casualt-mock #'dired-jump-other-window)
(casualt-mock #'ibuffer)
(casualt-mock #'recentf-open-files)
@@ -63,7 +63,7 @@
(let ((test-vectors
'((:binding "o" :command casual-editkit-open-tmenu)
- (:binding "f" :command find-file)
+ (:binding "f" :command find-file-at-point)
(:binding "d" :command dired-jump-other-window)
(:binding "b" :command ibuffer)
(:binding "R" :command recentf-open-files)