Add single-key actions on the dashboard

This commit is contained in:
TEC 2021-09-23 01:36:25 +08:00
parent e5f63a16f7
commit 6e8e323db6
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 17 additions and 0 deletions

View File

@ -981,6 +981,23 @@ straightforward, I'll just redefine it to a simpler, async, function.
(org-babel-tangle-file \\\"%s\\\"))\""
+literate-config-file))))
#+end_src
*** Dashboard quick actions
When using the dashboard, there are often a small number of actions I will take.
As the dashboard is it's own major mode, there is no need to suffer the tyranny
of unnecessary keystrokes --- we can simply bind common actions to a single key!
#+begin_src emacs-lisp
(map! :map +doom-dashboard-mode-map
:ne "f" #'find-file
:ne "r" #'consult-recent-file
:ne "p" #'doom/open-private-config
:ne "c" (cmd! (find-file (expand-file-name "config.org" doom-private-dir)))
:ne "." (cmd! (doom-project-find-file "~/.config/")) ; . for dotfiles
:ne "b" #'+vertico/switch-workspace-buffer
:ne "B" #'consult-buffer)
#+end_src
** Other things
*** Editor interaction
**** Mouse buttons