aboutsummaryrefslogtreecommitdiff
path: root/+dashboard.el
diff options
context:
space:
mode:
authorMagdalena Szweda <roughlynamed@disroot.org>2026-09-18 16:57:57 +0200
committerMagdalena Szweda <roughlynamed@disroot.org>2026-09-18 16:59:19 +0200
commitbb94aa9bae95cb10ce41f3ebe58266e508d58c9d (patch)
tree0e0c7caee14501a35c1e5b092bead25ed8b9e2a4 /+dashboard.el
parentfec6a49340041259500811b18dda4691f9569f89 (diff)
emacs(dash): make the dashboard print a random message
list 'dashboard-messages' with multiple messages function 'my/dashboard-random-message' that picks a random message from the list implented in :custom of minimal-dashboard
Diffstat (limited to '+dashboard.el')
-rw-r--r--+dashboard.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/+dashboard.el b/+dashboard.el
index e38b779..0d7cf78 100644
--- a/+dashboard.el
+++ b/+dashboard.el
@@ -1,8 +1,17 @@
;;; $DOOMDIR/+dashboard.el -*- lexical-binding: t; -*-
+
+(defvar dashboard-messages
+ '("Vi-Vi-Vi editor of the beast"
+ "Welcome to Emacs"
+ "M-x M-x"
+ "nnngh *humps* get pregnant!!!"))
+(defun my/dashboard-random-message ()
+ (nth (random (length dashboard-messages))
+ dashboard-messages))
(use-package! minimal-dashboard
:init
(setq initial-buffer-choice #'minimal-dashboard)
:custom
(minimal-dashboard-buffer-name "*dash*")
- (minimal-dashboard-text "Vi-Vi-Vi editor of the beast")
+ (minimal-dashboard-text #'my/dashboard-random-message)
(minimal-dashboard-modeline-shown 1))