Skip to content

Preserve appearance of collapsed outline headings until right window edge

License

Notifications You must be signed in to change notification settings

tarsius/backline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preserve appearance of collapsed outline headings until window edge

An outline heading does not extend to the right edge of the window when its body is collapsed. This is unfortunate when the used face sets the background color or another property that is visible on whitespace. This package adds overlays to extend the appearance of headings all the way to the right window edge.

(use-package backline
  :after outline
  :config (advice-add 'outline-flag-region :after 'backline-update))

The above advice requires that outline-minor-faces-mode (from the outline-minor-faces package) is enabled.

(use-package outline-minor-faces
  :after outline
  :config (add-hook 'outline-minor-mode-hook
                    #'outline-minor-faces-mode))

Do not set outline-minor-mode-highlight (provided by outline since Emacs 28.1) to a non-nil value, because that is incompatible with this package and outline-minor-faces (which is an older and still superior alternative). See outline-minor-faces for details.

Screenshots

Backline and Outline-Minor-Faces

http://readme.emacsair.me/backline-best.png

Outline-Minor-Faces only

http://readme.emacsair.me/backline-better.png

Neither

http://readme.emacsair.me/backline-vanilla.png



Compile MELPA Stable MELPA

About

Preserve appearance of collapsed outline headings until right window edge

Resources

License

Stars

Watchers

Forks