fix(vertico): TAB bound to non-interactive function

This commit is contained in:
Henrik Lissner 2021-07-28 13:09:44 -04:00
parent e0234dcab1
commit a6b6b6197b
2 changed files with 3 additions and 2 deletions

View file

@ -47,7 +47,8 @@ Use consult narrowing with another workspace number to open a buffer from that w
(funcall consult--buffer-display (car buffer))))) (funcall consult--buffer-display (car buffer)))))
;;;###autoload ;;;###autoload
(defun +vertico-embark-open-in-new-workspace (x) (defun +vertico/embark-open-in-new-workspace (x)
"Open X (a file) in a new workspace." "Open X (a file) in a new workspace."
(interactive)
(+workspace/new) (+workspace/new)
(find-file x)) (find-file x))

View file

@ -158,7 +158,7 @@ overrides `completion-styles' during company completion sessions.")
(setq embark-package-map (make-sparse-keymap)) (setq embark-package-map (make-sparse-keymap))
(map! (:map embark-file-map (map! (:map embark-file-map
:desc "Open target with sudo" "s" #'doom/sudo-find-file :desc "Open target with sudo" "s" #'doom/sudo-find-file
:desc "Open in new workspace" "TAB" #'+vertico-embark-open-in-new-workspace) :desc "Open in new workspace" "TAB" #'+vertico/embark-open-in-new-workspace)
(:map embark-package-map (:map embark-package-map
"h" #'doom/help-packages "h" #'doom/help-packages
"b" #'doom/bump-package "b" #'doom/bump-package