[Top][All Lists]

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

Re: Using proportional (variable-width) fonts in Emacs23

From: Thien-Thi Nguyen
Subject: Re: Using proportional (variable-width) fonts in Emacs23
Date: Wed, 30 Mar 2011 11:00:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

() Erin Brinkley <address@hidden>
() Mon, 28 Mar 2011 09:22:51 -0700 (PDT)

   Anyone know of a hack - kludge - tip - workaround I can try in the

Personally, i use this:

--8<---------------cut here---------------start------------->8---
(define-derived-mode thinking-with-another-brain text-mode "TWAB"
  "Like Text mode, but with `variable-pitch' face and `visual-line-mode'."
  (define-key thinking-with-another-brain-map
    "'" (lambda () (interactive) (insert-and-inherit "’"))))

(add-hook 'thinking-with-another-brain-hook
          (lambda ()
            (auto-fill-mode -1)
            (facemenu-set-face 'variable-pitch (point-min) (point-max))
            (visual-line-mode 1)
            (set (make-variable-buffer-local 'truncate-lines) nil)))
--8<---------------cut here---------------end--------------->8---

It was recently written specifically to read (and correct small spelling and
grammar errors in) Turing Evolved by David Kitson, and so is not (yet) fully
generalized and most likely peculiar to my setup, but you get the idea, i
hope.  I found that double spacing the text first greatly helps readability.

I don't know if this qualifies as a hack, kludge, tip or workaround; YMMV.

reply via email to

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