New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I change the typeface / font when reading a news item? #190
Comments
You could hook elfeed-show-mode (elfeed-show-mode-hook) to set the
face you like.
(add-hook 'elfeed-show-mode-hook
(lambda () (buffer-face-set 'variable-pitch)))
That's really all there is to it. However, Emacs cannot correctly wrap
paragraphs with a variable width font, so alignment and wrapping may
look off.
|
Yeah, this was my question too. People are going to be fussy about reading walls of text and want easy access to appearance. I read code for a while before coming here. Settings in this region should be easy to find at least: perhaps some defconst's for body and title faces? Or maybe an FAQ in the GH wiki? |
I wanted to add a note for others how I customized my show buffer. The (setq elfeed-show-mode-hook
(lambda ()
(set-face-attribute 'variable-pitch (selected-frame) :font (font-spec :family "Century Schoolbook" :size 12))
(setq fill-column 120)
(setq elfeed-show-entry-switch #'my-show-elfeed)))
(defun my-show-elfeed (buffer)
(with-current-buffer buffer
(setq buffer-read-only nil)
(goto-char (point-min))
(re-search-forward "\n\n")
(fill-individual-paragraphs (point) (point-max))
(setq buffer-read-only t))
(switch-to-buffer buffer)) |
@mnp thanks so much for following up on your customization efforts. It might be nice to add this sort of code example to the docs so folks don't have to rifle through github issues with font issues to find this. |
The font looks like the default (proportional) sans-serif font (like Helvetica) but I can't figure out how to set it. Can you tell me what this face is called, so that I can customize it?
The text was updated successfully, but these errors were encountered: