emacs-devel
[Top][All Lists]
Advanced

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

Re: face for non-ASCII characters


From: Florian Beck
Subject: Re: face for non-ASCII characters
Date: Tue, 23 Mar 2010 20:40:56 +0100
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Ted Zlatanov wrote:
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.

You could always do something like

(set-fontset-font "fontset-coding" ;; or whatever
        '(128 . 999999)
        (font-spec :family "LastResort" :size 20) ;; ok, not so subtle
        nil 'prepend)




Ted









reply via email to

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