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

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

Re: [TIP] Get rid of the `foo' eyesore


From: Kevin Rodgers
Subject: Re: [TIP] Get rid of the `foo' eyesore
Date: Fri, 11 Jul 2003 11:06:10 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Ted Zlatanov wrote:

On Thu, 10 Jul 2003, harder@myrealbox.com wrote:
Some old broken X fonts do have the "wrong" glyphs in those
positions -- that's probably how the habit started.  But fortunately
there's a better way to get rid of the eyesore than using a broken
font.  By modifying the display table like this

 (aset standard-display-table ?` [342392])  ; ‘
 (aset standard-display-table ?' [342393])  ; ’

you can get proper, nice looking single quotes.  This assumes that
your font has the required glyphs [U+2018 and U+2019], of course.

This would be a nice minor mode for Gnus and other purposes, how can
it be done so it's suitable for a hook or a minor mode?

(setq buffer-display-table (make-display-table))
(aset buffer-display-table ?` [342392])  ; ‘
(aset buffer-display-table ?' [342393])  ; ’

--
Kevin Rodgers



reply via email to

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