From 4f8a8e05e920936fbcecdd415773bba2d4ac9897 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 9 Jan 2025 00:36:56 -0500 Subject: [PATCH] fix(doom-dashboard): vanishing right-hand mode-line This is due to :align-to factoring in the margins into its alignment, which is ever changing in the dashboard buffer (or anywhere visual-fill-column is active). Even though `mode-line-right-align-edge` was introduced in Emacs 30, doom-modeline backports so, so its users should benefit from this as well. Close: #8114 Fix: #7466 Fix: seagle0128/doom-modeline#668 Fix: seagle0128/doom-modeline#672 Co-authored-by: unipro --- modules/ui/doom-dashboard/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 613e331f5..8a77d25e8 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -183,9 +183,9 @@ PLIST can have the following properties: (setq-local auto-hscroll-mode nil) ;; Line numbers are ugly with large margins (setq-local display-line-numbers-type nil) - (cl-loop for (car . _cdr) in fringe-indicator-alist - collect (cons car nil) into alist - finally do (setq-local fringe-indicator-alist alist)) + ;; Ensure the ever-changing margins don't screw with the mode-line's + ;; right-alignment (see #8114). + (setq-local mode-line-right-align-edge 'right-margin) ;; Ensure point is always on a button (add-hook 'post-command-hook #'+doom-dashboard-reposition-point-h nil 'local) ;; hl-line produces an ugly cut-off line highlight in the dashboard, so don't