Remove variable width fonts from Org-mode

This commit is contained in:
eriedaberrie 2023-03-13 20:57:04 -07:00
parent 72de467c2d
commit f0153c19bd

29
init.el
View file

@ -440,23 +440,10 @@
(use-package wc-mode (use-package wc-mode
:hook text-mode org-mode) :hook text-mode org-mode)
(defun my-set-text-modes-font ()
(interactive)
(setq buffer-face-mode-face '(:family "Inter" :height 115)
line-spacing 0.3)
(buffer-face-mode))
(use-package org (use-package org
:hook :hook
(org-mode . org-indent-mode) (org-mode . org-indent-mode)
(org-mode . auto-fill-mode) (org-mode . auto-fill-mode)
(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-meta-line ((t (:family "JetbrainsMono Nerd Font" :height 105))))
(org-document-info-keyword ((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)
@ -471,14 +458,7 @@
(org-preview-latex-default-process 'dvisvgm) (org-preview-latex-default-process 'dvisvgm)
: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
@ -518,10 +498,6 @@
(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")))
@ -655,8 +631,6 @@
(use-package catppuccin-theme (use-package catppuccin-theme
:demand t :demand t
:custom-face :custom-face
(mode-line-active ((t (:font "DejaVu Sans Mono"))))
(mode-line-inactive ((t (:font "DejaVu Sans Mono"))))
(line-number-current-line ((t (:inherit hl-line)))) (line-number-current-line ((t (:inherit hl-line))))
:custom :custom
(catppuccin-flavor 'mocha)) (catppuccin-flavor 'mocha))
@ -750,6 +724,7 @@
(setq-default c-basic-offset 4 (setq-default c-basic-offset 4
c-ts-mode-indent-offset 4 c-ts-mode-indent-offset 4
json-ts-mode-indent-offset 4
tab-width 4 tab-width 4
fill-column 80) fill-column 80)
(add-hook 'python-mode-hook (lambda () (setq tab-width 4))) (add-hook 'python-mode-hook (lambda () (setq tab-width 4)))