diff options
| author | condy <condy0919@gmail.com> | 2026-03-30 23:52:36 +0800 |
|---|---|---|
| committer | Youmu <condy0919@gmail.com> | 2026-03-31 01:26:59 +0800 |
| commit | 4ad1646964638322302dfb167aec40a2455bfb78 (patch) | |
| tree | 920ed9df05724c751e7adf7b8c6c071c2732fce5 | |
| parent | 8f261eb0c284be23f534dbbef976d71a5ab5245f (diff) | |
fix(dashboard): the return value of lookup-key can be a lambda
Fix #899
| -rw-r--r-- | modes/dashboard/evil-collection-dashboard.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modes/dashboard/evil-collection-dashboard.el b/modes/dashboard/evil-collection-dashboard.el index 95258a2..cb4c6ae 100644 --- a/modes/dashboard/evil-collection-dashboard.el +++ b/modes/dashboard/evil-collection-dashboard.el @@ -37,10 +37,10 @@ (defun evil-collection-dashboard-setup-jump-commands (&rest _) "Set up bindings for jump commands in Dashboard." (evil-collection-define-key 'normal 'dashboard-mode-map - "r" (symbol-function (lookup-key dashboard-mode-map "r")) ; recents - "m" (symbol-function (lookup-key dashboard-mode-map "m")) ; bookmarks - "p" (symbol-function (lookup-key dashboard-mode-map "p")) ; projects - "a" (symbol-function (lookup-key dashboard-mode-map "a")) ; agenda + "r" (lookup-key dashboard-mode-map "r") ; recents + "m" (lookup-key dashboard-mode-map "m") ; bookmarks + "p" (lookup-key dashboard-mode-map "p") ; projects + "a" (lookup-key dashboard-mode-map "a") ; agenda ;; - Dashboard inserts shortcut hints in its buffer, so it's ;; hard to differ from the default. ;; |
