emacs-devel
[Top][All Lists]
Advanced

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

Re: fringe symbol for newline


From: Juri Linkov
Subject: Re: fringe symbol for newline
Date: Thu, 10 Jul 2008 23:04:31 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

> Also, I'd still prefer this to be in the fringe. It's a lot less
> intrusive.  You need this sort of information only occasionally.

Yes, it is less intrusive in the fringe.  Everyone who wants to display
more intrusive ΒΆ before newlines can activate whitespace-mode.

> (defface blank-newline
>   '((((class color) (background dark))
>      (:foreground "lightgrey" :bold t))
>     (((class color) (background light))
>      ( :foreground "lightgrey" :bold t))
>     (t (:bold t :underline t)))
>   "Face used to visualize NEWLINE char mapping.
>
> See `blank-display-mappings'."
>   :group 'blank)
>
> ;; 2230 = \x8B6

It is 182 = ?\xB6 in Emacs 23.

> (setq buffer-display-table (make-display-table))
> (aset buffer-display-table 10 (vector  32 (make-glyph-code  2230
>                                                'blank-newline) 10))

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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