From 48c2acde0e0394f0538aa939b4baf649e3846276 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 30 Oct 2017 20:03:42 +0100 Subject: [PATCH] [Helm] Allow specifying separate handler for helm shortcuts --- site-lisp/db-utils.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 9f0b959..69edf50 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -287,7 +287,10 @@ If FILE is not given, prompt for one." (defvar db/helm-source-frequently-visited-locations '((name . "Locations") (candidates . db/helm-frequently-visited-locations) - (action . (("Open" . find-file))) + (action . (("Open" . (lambda (entry) + (if (consp entry) + (funcall (car entry) (cdr entry)) + (find-file entry)))))) (filtered-candidate-transformer . helm-adaptive-sort))) (defcustom db/important-documents-path "~/Documents/library/"