this post was submitted on 23 Oct 2023
1 points (100.0% liked)

Emacs

314 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hi,

I'm quite new to emacs. Using doom-emacs I have the following lines in my config.el:

(after! org
  (custom-set-faces!
    '(org-document-title :height 2.0)
    '(org-level-1 :inherit outline-1 :weight extra-bold :height 1.75)
    '(org-level-2 :inherit outline-2 :weight bold :height 1.5)
    '(org-level-3 :inherit outline-3 :weight bold :height 1.25)
    '(org-level-4 :inherit outline-4 :weight bold :height 1.1)
    '(org-level-5 :inherit outline-5 :weight semi-bold :height 1.06)
    '(org-level-6 :inherit outline-6 :weight semi-bold :height 1.03)
    '(org-level-7 :inherit outline-7 :weight semi-bold)
    '(org-level-8 :inherit outline-8 :weight semi-bold)
    ;; Ensure that anything that should be fixed-pitch in org buffers appears that
    ;; way
    '(org-block nil :foreground nil :inherit 'fixed-pitch)
    '(org-code nil   :inherit '(shadow fixed-pitch))
    '(org-table nil   :inherit '(shadow fixed-pitch))
    '(org-verbatim nil :inherit '(shadow fixed-pitch))
    '(org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
    '(org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
    '(org-checkbox nil :inherit 'fixed-pitch)))

This works fine, but gives me a strange-looking columnview (because many todo-items do have different fontsizes now).

How can I ensure, that - when using columnview - a monospace font with a fixed fontsize is used?

top 1 comments
sorted by: hot top controversial new old
[–] _Akastos_@alien.top 1 points 1 year ago

Found a solution:

    '(org-column :inherit 'fixed-pitch)