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

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

org emphasis everywhere and also filling


From: Samuel Wales
Subject: org emphasis everywhere and also filling
Date: Thu, 20 Jun 2024 17:53:11 -0700

been wondering this.  i like /org emphasis/ in non-org files, so i have a
kludgey font lock for it that i put on prog mode hook, text mode hook etc.

it seems by default org comments turn off emphasis.  probably org does so
in other places too.  my preference is opposite.  my kludge fixes that i
think.

however, filling is an issue for emphasis where there are comments
anywhere, and possible where there is any fill prefix.

;; consider a .el file
;; /one big long line longer than fill colunm
;; makes jack a dull boy/

will emphasize the comment markers, and if indented idk maybe that too
depending on the face settings.  to me that is ugly and misleading.  e.g.
you wouldn't be able to as easily do a text search on the filled text, and
the comment markers would look better in comment marker face.

so i am wondering if there is a right way to do this, to at least turn off
font locking for comment chars, and probably whitespace, caused by filling.

it might be reasonable to make anything emphasized be considered a single
word for filling purposes, but that might look ugly too.  can be quite long.



-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com


reply via email to

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