diff --git a/init.el b/init.el index 63a6ff0..e038422 100644 --- a/init.el +++ b/init.el @@ -440,23 +440,10 @@ (use-package wc-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 :hook (org-mode . org-indent-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 (org-list-allow-alphabetical t) (org-hide-emphasis-markers t) @@ -471,14 +458,7 @@ (org-preview-latex-default-process 'dvisvgm) :config (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)) - (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))))))) + (add-to-list 'org-modules 'org-tempo)) (use-package org-superstar :custom @@ -518,10 +498,6 @@ (use-package markdown-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 (markdown-command '("pandoc" "--from=markdown" "--to=html5"))) @@ -655,8 +631,6 @@ (use-package catppuccin-theme :demand t :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)))) :custom (catppuccin-flavor 'mocha)) @@ -750,6 +724,7 @@ (setq-default c-basic-offset 4 c-ts-mode-indent-offset 4 + json-ts-mode-indent-offset 4 tab-width 4 fill-column 80) (add-hook 'python-mode-hook (lambda () (setq tab-width 4)))