diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-25 04:10:43 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-25 04:10:43 -0500 |
| commit | a702e4eb91d8f6e55cb9310c7c83e5b44c3a3e15 (patch) | |
| tree | f00481a58efe7c76823d7a028e01efaf7efa345e /modules | |
| parent | b0bc4d93691e3ec9ee53e3dd877a49add5e247a7 (diff) | |
| download | dotemacs-a702e4eb91d8f6e55cb9310c7c83e5b44c3a3e15.tar.gz dotemacs-a702e4eb91d8f6e55cb9310c7c83e5b44c3a3e15.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.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el index 833fb7b51..7adcdee76 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 |
