[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 19 Sep 2013 07:30:15 +0200
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Here is a command that toggles ‘variable-pitch’ face:
(defun toggle-variable-pitch ()
"Toggle use of face `variable-pitch'.
This works by frobbing `face-remapping-alist'."
(let ((spec '(default variable-pitch)))
(set (make-local-variable 'face-remapping-alist)
(if (member spec face-remapping-alist)
(delete spec face-remapping-alist)
(cons spec face-remapping-alist)))))
I use it w/ emacs-w3m (v.cool, recommended), added to ‘w3m-mode-hook’
for typical (carefree) surfing, and invoked explicitly for:
and RFCs, etc. If something like this already exists, please tell me.
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
Description: PGP signature
Thien-Thi Nguyen <=