emacs-devel
[Top][All Lists]
Advanced

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

Re: face for non-ASCII characters (was: Translation of http status code


From: Lennart Borgman
Subject: Re: face for non-ASCII characters (was: Translation of http status code to text)
Date: Tue, 23 Mar 2010 17:28:01 +0100

2010/3/23 Ted Zlatanov <address@hidden>:
> On Tue, 23 Mar 2010 14:08:42 +0100 Lennart Borgman <address@hidden> wrote:
>
> ...
> LB> (defface markchars-face
> LB>   '((t (:underline "light blue")))
> LB>   "Face for `markchars-mode' char marking."
> LB>   :group 'markchars)
>
> LB> (defconst markchars-keywords
> LB>   `(
> LB>     ("[[:nonascii:]]"
> LB>      (0 (put-text-property (match-beginning 0) (match-end 0)
> LB>                            'face 'markchars-face)))
> LB>     ))
>
> This is what I was thinking of, and the effect should be subtle.  The
> light blue underline is pretty good; it would be nice if it could be a
> choice between a few similarly well-chosen defaults (I'm hardly the one
> to provide them, though).
>
> I would make this an Emacs first-class option rather than an optional
> library.  I think it's really useful.


Ok, since you found it useful I tried to finish it. See the attachment.

Attachment: markchars.el
Description: Text document


reply via email to

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