[Top][All Lists]

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

Re: Special font for lines with suffix

From: Pascal J. Bourguignon
Subject: Re: Special font for lines with suffix
Date: Mon, 28 Dec 2009 12:40:48 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux)

Meekohi <address@hidden> writes:

> When debugging code, I tend to put in hacks, and then I forget to take
> them out later. What I'd like is to be able to end a line with "//!"
> or something similar and have emacs increase the font-size (or
> something similar) to make it stand out visually. I don't know how to
> get started. Any advice or recommendations on how to accomplish this?

I would try:

(font-lock-add-keywords nil '("^.*//!.*" 0 font-lock-warning-face prepend))

__Pascal Bourguignon__           

reply via email to

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