seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.

Home Page:https://seagle0128.github.io/doom-modeline/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Modeline aligns with fill column in visual-fill-column-mode

deadcombo opened this issue · comments

Thank you for the bug report

  • I am using the latest version of doom-modeline related packages.
  • I checked FAQ.
  • You may also try reproduce the issue using clean environment and minimal configurations with
    the command emacs -Q.

Bug description

image
image

These are screenshots of Emacs with only visual-fill-column and doom-modeline installed, using with-emacs.sh.
When visual-fill-column is enabled, the modeline right align breaks and the modeline becomes aligned with the fill column.

Steps to reproduce

  1. Enable doom-modeline-mode
  2. Enable visual-fill-column-mode

Expected behavior

The modeline stays aligned to the right.

OS

Linux

Emacs Version

30 (gccemacs)

Emacs Configurations

None.

Error callstack

No response

Anything else

I'm not sure whether this is an issue with visual-fill-column instead.

Am also replicating this

It's not a bug, while the feature of visual-fill-column-mode. Try (setq mode-line-right-align-edge 'right-fringe).

Maybe I should introduce a new option doom-modeline-right-align-edge?

It's not a bug, while the feature of visual-fill-column-mode. Try (setq mode-line-right-align-edge 'right-fringe).

Maybe I should introduce a new option doom-modeline-right-align-edge?

mode-line-right-align-edge does solve it. I don't think you should create a new option, rather the visual-fill-column author should document his changes affect the mode-line.