help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customising display-fill-column-indicator-mode


From: Gregory Heytings
Subject: Re: Customising display-fill-column-indicator-mode
Date: Thu, 25 Aug 2022 08:16:58 +0000

I have done

(setq display-fill-column-indicator t)
(setq display-fill-column-indicator-character ?\u2503)
(set-face-foreground 'fill-column-indicator "green")
(global-display-fill-column-indicator-mode)
This should work (except that the first line is unnecessary). Put the 
last three lines in a file (say "test.el"), start Emacs with
emacs -Q -l test.el

and you'll see a thick green line on column 70.
Right, but not when using a dark theme like modus-vivendi (part of 
modus-themes) that comes with emacs.  Been having enough patience with 
condescending people stating I do not know shit.
That wasn't part of your original problem statement.  Put this in a 
"test.el" file:
(load-theme 'modus-vivendi t)
(global-display-fill-column-indicator-mode)
(set-face-attribute 'fill-column-indicator nil :background "green" :foreground 
"green" :height 0.3)

and start Emacs as above (emacs -Q -l test.el). If the bar is not thick enough, you can make the :height value larger.
You're welcome.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]