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

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

Re: Introducing face in comments for various modes


From: Christopher Dimech
Subject: Re: Introducing face in comments for various modes
Date: Tue, 13 Dec 2022 09:17:02 +0100

> Sent: Tuesday, December 13, 2022 at 7:52 PM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Heime" <heimeborgia@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Introducing face in comments for various modes
>
> 
> Heime, I like the idea of highlighting comments, though I do it this
> way to specify (syntax comment-start) as that works for multiple
> modes.
> 
> ; one
> ;; two
> ;;;      three
> ;;;;      and more
> 
> ;;; Highlighting comments
> 
> (setq rcd-regexp-comment (rx line-start 
>                                    (one-or-more (syntax comment-start)) 
>                                    (one-or-more space) 
>                            (group (one-or-more not-newline)) 
>                            line-end))
> 
> ;; (highlight-regexp regexp nil 1)
> ;; (unhighlight-regexp regexp)
> 
> -- 
> Jean

Would your procedure not conflict when people use outline-mode.  Such comments
will end up getting folded by tho outline commands, something the OP does not 
want.



   



reply via email to

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