Skip to content
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

Open
debajit opened this issue Jan 13, 2017 · 4 comments
Open

How do I change the typeface / font when reading a news item? #190

debajit opened this issue Jan 13, 2017 · 4 comments

Comments

@debajit
Copy link

debajit commented Jan 13, 2017

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?

@skeeto
Copy link
Owner

skeeto commented Jan 16, 2017 via email

@mnp
Copy link
Contributor

mnp commented Dec 18, 2017

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?

@mnp
Copy link
Contributor

mnp commented Apr 25, 2018

I wanted to add a note for others how I customized my show buffer. The elfeed-show-mode-hook above does work for buffer variable settings, but I also wanted some behavior, word wrap in my case. I used elfeed-show-entry-switch as a hook. I guess this could have been a defadvice.

(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))

@powellc
Copy link

powellc commented May 23, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants