|
From: | Kevin Rodgers |
Subject: | Re: Display "dash" as "minus" in programming language mode? |
Date: | Wed, 08 Jul 2009 19:23:58 -0600 |
User-agent: | Thunderbird 2.0.0.22 (Macintosh/20090605) |
Torsten Bronger wrote:
Hallöchen! I have an arguably odd question: Is it possible to tell Emacs to display every "dash" character as an "en-dash" character? The reason is that I use the DejaVu fonts which have a particularly short dash. In source code, this is unfortunate. Is is possible to use e.g. font-lock-mode to substitute "en-dash" or "minus" for every "dash"?
How about: (aset (or standard-display-table (setq standard-display-table (make-display-table))) ?- [?\u2013]) Or for just programming language mode foo: (add-hook 'foo-mode-hook (lambda () (aset (or buffer-display-table (setq buffer-display-table (make-display-table))) ?- [?\u2013]))) -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |