aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-25 04:10:43 -0500
committerCraig Jennings <c@cjennings.net>2026-04-25 04:10:43 -0500
commit9cb191cfdfd79cbd94a7b6dc481e5376ab29fe05 (patch)
treef725a0ed122bb3d390290a407cad654b67e4cea2 /modules
parent6f3142e75d640cbc9713dc5165537b5e61e0dd5f (diff)
downloaddotemacs-9cb191cfdfd79cbd94a7b6dc481e5376ab29fe05.tar.gz
dotemacs-9cb191cfdfd79cbd94a7b6dc481e5376ab29fe05.zip
feat(dashboard): F1 lands point at the top of the buffer
cj/dashboard-only used to leave point wherever the dashboard buffer was last visited. Now it goes to point-min so the banner and navigator are visible on entry.
Diffstat (limited to 'modules')
-rw-r--r--modules/dashboard-config.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el
index 833fb7b5..7adcdee7 100644
--- a/modules/dashboard-config.el
+++ b/modules/dashboard-config.el
@@ -60,14 +60,15 @@ Adjust this if the title doesn't appear centered under the banner image.")
;; convenience function to redisplay dashboard and kill all other windows
(defun cj/dashboard-only ()
- "Switch to *dashboard* buffer and kill all other buffers and windows."
+ "Switch to *dashboard* buffer, kill other buffers and windows, go to top."
(interactive)
(if (get-buffer "*dashboard*")
(progn
(switch-to-buffer "*dashboard*")
(cj/kill-all-other-buffers-and-windows))
(when (fboundp 'dashboard-open)
- (dashboard-open))))
+ (dashboard-open)))
+ (goto-char (point-min)))
;; --------------------------------- Dashboard ---------------------------------
;; a useful startup screen for Emacs