1
0
Fork 0

feat(emacs): variable face in org-mode

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-02-05 16:03:03 -05:00
parent 20d2bb941e
commit df1b455081
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 20 additions and 9 deletions

View file

@ -57,9 +57,11 @@
(defvar font-family "JetBrains Mono SemiBold")
(set-frame-font (format "%s %d" font-family font-size))
(custom-set-faces
'(shr-text ((t (:inherit variable-pitch-text :family "Noto Sans Light")))))
'(variable-pitch ((t (:family "Linux Libertine" :height 125 :weight medium))))
'(fixed-pitch ((t (:family "JetBrains Mono SemiBold" :height 100))))
'(shr-text ((t (:inherit variable-pitch-text :family "Linux Libertine")))))
(set-face-attribute 'italic nil
:family "JetBrains Mono"
:family 'inherit
:slant 'italic
:weight 'semi-bold
:foreground nano-light-foreground)

View file

@ -65,6 +65,7 @@
(add-hook 'org-mode-hook #'olivetti-mode)
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-mode-hook #'org-recur-mode)
(add-hook 'org-mode-hook #'variable-pitch-mode)
(add-hook 'org-agenda-mode-hook #'org-recur-mode)
(add-hook 'org-mode-hook #'org-modern-indent-mode 90)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
@ -100,13 +101,21 @@
;; Theme
(custom-set-faces
'(org-document-info ((t (:inherit nano-strong :height 1.0 :family "Roboto Mono"))))
'(org-document-title ((t (:inherit nano-strong :height 1.5 :family "Roboto Mono"))))
'(org-level-1 ((t (:inherit nano-strong :extend nil :height 1.4 :family "Inter"))))
'(org-level-2 ((t (:inherit nano-strong :extend nil :height 1.3 :family "Inter"))))
'(org-level-3 ((t (:inherit nano-strong :extend nil :height 1.2 :family "Inter"))))
'(org-level-4 ((t (:inherit nano-strong :extend nil :height 1.1 :family "Inter"))))
'(org-link ((t (:inherit nano-salient :underline t)))))
'(org-document-info ((t (:inherit nano-strong :height 1.0 :family "JetBrains Mono SemiBold"))))
'(org-document-title ((t (:inherit nano-strong :height 1.5 :family "JetBrains Mono SemiBold"))))
'(org-document-info-keyword ((t :inherit (nano-faded fixed-pitch))))
'(org-level-1 ((t (:inherit nano-strong :extend nil :height 1.4 :family "Linux Libertine"))))
'(org-level-2 ((t (:inherit nano-strong :extend nil :height 1.3 :family "Linux Libertine"))))
'(org-level-3 ((t (:inherit nano-strong :extend nil :height 1.2 :family "Linux Libertine"))))
'(org-level-4 ((t (:inherit nano-strong :extend nil :height 1.1 :family "Linux Libertine"))))
'(org-link ((t (:inherit nano-salient :underline t))))
'(org-block ((t :inherit fixed-pitch)))
'(org-code ((t :inherit (nano-salient fixed-pitch))))
'(org-indent ((t :inherit (org-hide fixed-pitch))))
'(org-table ((t :inherit fixed-pitch)))
'(org-block-begin-line ((t :inherit (nano-faded fixed-pitch) :extend t)))
'(org-block-end-line ((t :inherit (nano-faded fixed-pitch) :extend t)))
'(org-meta-line ((t :inherit (nano-faded fixed-pitch)))))
(provide 'orgconfig)