Use Inter by default in org

This commit is contained in:
eriedaberrie 2023-02-14 10:18:14 -08:00
parent 582308ce0f
commit c586da323d

25
init.el
View file

@ -402,16 +402,20 @@
(use-package wc-mode (use-package wc-mode
:hook text-mode org-mode) :hook text-mode org-mode)
(defun set-text-modes-font () (defun my-set-text-modes-font ()
(interactive) (interactive)
(setq buffer-face-mode-face '(:family "DejaVu Sans Mono" :height 105) (setq buffer-face-mode-face '(:family "Inter" :height 115)
line-spacing 0.4) line-spacing 0.3)
(buffer-face-mode)) (buffer-face-mode))
(use-package org (use-package org
:hook ((org-mode . org-indent-mode) :hook ((org-mode . org-indent-mode)
(org-mode . auto-fill-mode) (org-mode . auto-fill-mode)
(org-mode . set-text-modes-font)) (org-mode . my-set-text-modes-font))
:custom-face
(org-block ((t (:family "JetbrainsMono Nerd Font" :height 105))))
(org-code ((t (:family "JetbrainsMono Nerd Font" :height 105))))
(org-hide ((t (:inherit fixed-pitch))))
:custom :custom
(org-list-allow-alphabetical t) (org-list-allow-alphabetical t)
(org-hide-emphasis-markers t) (org-hide-emphasis-markers t)
@ -426,7 +430,14 @@
(C . t))) (C . t)))
:config :config
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)) (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1))
(add-to-list 'org-modules 'org-tempo)) (add-to-list 'org-modules 'org-tempo)
(with-eval-after-load 'catppuccin-theme
(face-spec-set 'org-table `((t (:family
"DejaVu Sans Mono"
:height
100
:foreground
,(catppuccin-get-color 'subtext0)))))))
(use-package org-superstar (use-package org-superstar
:custom :custom
@ -446,6 +457,10 @@
(use-package markdown-mode (use-package markdown-mode
:mode ("README\\.md\\'" . gfm-mode) :mode ("README\\.md\\'" . gfm-mode)
:hook (markdown-mode . my-set-text-modes-font)
:custom-face
(markdown-code-face ((t (:family "JetbrainsMono Nerd Font" :height 105))))
(markdown-inline-code-face ((t (:family "JetbrainsMono Nerd Font" :height 105))))
:custom :custom
(markdown-command '("pandoc" "--from=markdown" "--to=html5"))) (markdown-command '("pandoc" "--from=markdown" "--to=html5")))