mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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 <unipro@users.noreply.github.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user