Gnus development mailing list
 help / color / mirror / Atom feed
From: Miles Bader <miles@gnu.org>
To: ding@gnus.org
Subject: variable-pitch font in article buffer
Date: Thu, 19 Jun 2008 15:10:40 +0900	[thread overview]
Message-ID: <buoskvax8db.fsf@dhapc248.dev.necel.com> (raw)

Now that Emacs CVS has the face-remapping-alist featrue, I'll mention
this little hack I have in ~/.gnus:


(defun gnus-article-variable-pitch-mode (&optional arg)
  "Apply `variable-pitch-mode' in article buffer."
  (interactive (list (or current-prefix-arg (quote toggle))))
  (with-current-buffer gnus-article-buffer
    (variable-pitch-mode arg)))

(add-hook 'gnus-summary-mode-hook
          (lambda () (local-set-key "v" 'gnus-article-variable-pitch-mode)))

(add-hook 'gnus-article-mode-hook
          (lambda () (variable-pitch-mode t)))


I dunno if something similar is desirable for default Gnus, but having a
variable-pitch font in the article buffer is often really nice --
messages with lots of prose can be significantly easier to read.

However some articles really need a fixed-pitch font, thus the
easy-to-hit summary-buffer binding to toggle variable-pitch mode in the
article buffer.

-Miles

-- 
"Suppose we've chosen the wrong god. Every time we go to church we're
just making him madder and madder." -- Homer Simpson




             reply	other threads:[~2008-06-19  6:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19  6:10 Miles Bader [this message]
2008-07-01 20:41 ` Ted Zlatanov
2008-07-01 22:18   ` Miles Bader
2008-07-03 20:59     ` Ted Zlatanov
2008-07-03 21:10       ` Miles Bader
2008-07-04 12:55       ` James Cloos
2008-07-04 14:13         ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buoskvax8db.fsf@dhapc248.dev.necel.com \
    --to=miles@gnu.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).