2022-03-28 15:03:21 +02:00
|
|
|
#+title: :ui doom-dashboard
|
|
|
|
#+subtitle: Welcome to your doom
|
|
|
|
#+created: February 20, 2017
|
|
|
|
#+since: 2.0.0
|
2021-10-16 01:29:57 +02:00
|
|
|
|
|
|
|
* Description :unfold:
|
2019-12-27 14:46:10 -05:00
|
|
|
This module adds a minimalistic, Atom-inspired dashboard to Emacs.
|
2017-08-21 20:12:25 +02:00
|
|
|
|
2019-12-27 14:46:10 -05:00
|
|
|
Besides eye candy, the dashboard serves two other purposes:
|
|
|
|
|
|
|
|
1. To improve Doom's startup times (the dashboard is lighter than the scratch
|
|
|
|
buffer in many cases).
|
|
|
|
|
|
|
|
2. And to preserve the "last open directory" you were in. Occasionally, I kill
|
|
|
|
the last buffer in my project and I end up who-knows-where (in the working
|
|
|
|
directory of another buffer/project). It can take some work to find my way
|
|
|
|
back to where I was. Not with the Dashboard.
|
|
|
|
|
|
|
|
Since the dashboard cannot be killed, and it remembers the working directory
|
|
|
|
of the last open buffer, ~M-x find-file~ will work from the directory I
|
|
|
|
expect.
|
2017-08-21 20:12:25 +02:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
** Maintainers
|
|
|
|
- [[doom-user:][@hlissner]]
|
|
|
|
|
|
|
|
[[doom-contrib-maintainer:][Become a maintainer?]]
|
|
|
|
|
|
|
|
** Module flags
|
|
|
|
/This module has no flags./
|
|
|
|
|
|
|
|
** Packages
|
|
|
|
/This module doesn't install any packages./
|
|
|
|
|
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
|
|
|
|
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
|
|
|
|
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
|
|
|
|
2023-09-14 00:03:55 +01:00
|
|
|
This module only requires that ~nerd-icons~'s icon fonts are installed, which
|
2021-10-16 01:29:57 +02:00
|
|
|
should've been installed when you ran ~$ doom install~. Otherwise, use ~M-x
|
2023-09-14 00:03:55 +01:00
|
|
|
nerd-icons-install-fonts~ to install them.
|
2021-10-16 01:29:57 +02:00
|
|
|
|
|
|
|
* Usage
|
|
|
|
Once this module is enabled, the dashboard will present itself after opening a
|
|
|
|
fresh instance of Emacs, or after killing all real buffers.
|
2017-08-21 20:12:25 +02:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
You can forcibly open the dashboard with ~M-x +doom-dashboard/open~.
|
2019-12-27 14:46:10 -05:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
* TODO Configuration
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
/This module's configuration documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_quote
|
2019-12-27 14:46:10 -05:00
|
|
|
|
|
|
|
** A custom banner
|
|
|
|
To use a custom image as your banner, change ~fancy-splash-image~:
|
2021-10-16 01:29:57 +02:00
|
|
|
#+begin_src emacs-lisp
|
2019-12-27 14:46:10 -05:00
|
|
|
(setq fancy-splash-image "~/my/banners/image.png")
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_src
|
2019-12-27 14:46:10 -05:00
|
|
|
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
Doom will fall back to its ASCII banner in Terminal Emacs. To replace the
|
2021-10-16 01:29:57 +02:00
|
|
|
ASCII banner, replace the ~doom-dashboard-widget-banner~ function in
|
|
|
|
~+doom-dashboard-functions~ with a function that inserts your new banner
|
|
|
|
into the current file.
|
2019-12-27 14:46:10 -05:00
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
** Adding text to the dashboard
|
|
|
|
Doom's dashboard iterates over ~+doom-dashboard-functions~ when it is told to
|
|
|
|
redraw. Add your own functions to operate on the buffer and potentially add
|
|
|
|
whatever you like to Doom's splash screen.
|
|
|
|
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
Keep in mind that inserting text from expensive sources, e.g. your org
|
2021-10-16 01:29:57 +02:00
|
|
|
agenda, will negate most of Doom's startup benefits.
|
2019-12-27 14:46:10 -05:00
|
|
|
#+end_quote
|
2020-01-02 23:18:19 -05:00
|
|
|
|
|
|
|
** Customizing Faces
|
2021-10-16 01:29:57 +02:00
|
|
|
Doom's dashboard defaults to inheriting faces set by the current theme. If you
|
|
|
|
wish to customize it independently of the theme (or just inherit a different
|
|
|
|
color from the theme) you can make use of ~custom-set-faces!~ or
|
|
|
|
~custom-theme-set-faces!~:
|
|
|
|
#+begin_src emacs-lisp
|
2020-01-02 23:18:19 -05:00
|
|
|
(custom-set-faces!
|
|
|
|
'(doom-dashboard-banner :foreground "red" :background "#000000" :weight bold)
|
|
|
|
'(doom-dashboard-footer :inherit font-lock-constant-face)
|
2023-09-14 00:03:55 +01:00
|
|
|
'(doom-dashboard-footer-icon :inherit nerd-icons-red)
|
2020-01-02 23:18:19 -05:00
|
|
|
'(doom-dashboard-loaded :inherit font-lock-warning-face)
|
|
|
|
'(doom-dashboard-menu-desc :inherit font-lock-string-face)
|
|
|
|
'(doom-dashboard-menu-title :inherit font-lock-function-name-face))
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_src
|
|
|
|
|
2020-01-02 23:18:19 -05:00
|
|
|
or for a per-theme setting
|
2021-10-16 01:29:57 +02:00
|
|
|
#+begin_src emacs-lisp
|
2020-01-02 23:18:19 -05:00
|
|
|
(custom-theme-set-faces! 'doom-tomorrow-night
|
|
|
|
'(doom-dashboard-banner :foreground "red" :background "#000000" :weight bold)
|
|
|
|
'(doom-dashboard-footer :inherit font-lock-constant-face)
|
2023-09-14 00:03:55 +01:00
|
|
|
'(doom-dashboard-footer-icon :inherit nerd-icons-red)
|
2020-01-02 23:18:19 -05:00
|
|
|
'(doom-dashboard-loaded :inherit font-lock-warning-face)
|
|
|
|
'(doom-dashboard-menu-desc :inherit font-lock-string-face)
|
|
|
|
'(doom-dashboard-menu-title :inherit font-lock-function-name-face))
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
* Troubleshooting
|
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_quote
|