aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-29 08:03:41 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-29 08:03:41 -0700
commit4709a46cfa0b69b113a4a8d66e6ab47fe3351d8f (patch)
tree1f0bf99dc3834f54c235c1976170e53731b479c4
parent06c08b015368fa4277a7c83657c83c291539c179 (diff)
emacs: add rul-fonts to literate config
-rw-r--r--.emacs.d/rul-emacs.org41
-rw-r--r--.emacs.d/rul-lisp/packages/rul-fonts.el2
2 files changed, 43 insertions, 0 deletions
diff --git a/.emacs.d/rul-emacs.org b/.emacs.d/rul-emacs.org
index fd64947..fdc2364 100644
--- a/.emacs.d/rul-emacs.org
+++ b/.emacs.d/rul-emacs.org
@@ -555,3 +555,44 @@ packages.
(provide 'rul-fm)
#+end_src
+
+** The =fonts= module
+The =fonts= module contains code pertaining to fonts. In particular, it
+installs =fontaine=, a software that allows defining font presets.
+
+#+begin_src emacs-lisp :tangle "rul-lisp/packages/rul-fonts.el"
+;;; rul-fonts.el --- Fonts configuration
+
+(use-package fontaine
+ :ensure t
+ :config
+ (setq fontaine-presets
+ '((tiny
+ :default-height 100)
+ (small
+ :default-height 120)
+ (medium
+ :default-height 140)
+ (large
+ :default-weight semilight
+ :default-height 180
+ :bold-weight extrabold)
+ (presentation
+ :default-weight semilight
+ :default-height 200
+ :bold-weight extrabold)
+ (jumbo
+ :default-weight semilight
+ :default-height 230
+ :bold-weight extrabold)
+ (t
+ :default-family "Iosevka"
+ :default-weight regular
+ :default-height 140
+ :variable-pitch-family "Iosevka Aile")))
+
+ ;; Set desired style from `fontaine-presets'
+ (fontaine-set-preset 'medium))
+
+(provide 'rul-fonts)
+#+end_src
diff --git a/.emacs.d/rul-lisp/packages/rul-fonts.el b/.emacs.d/rul-lisp/packages/rul-fonts.el
index 95102e0..8395292 100644
--- a/.emacs.d/rul-lisp/packages/rul-fonts.el
+++ b/.emacs.d/rul-lisp/packages/rul-fonts.el
@@ -1,3 +1,5 @@
+;;; rul-fonts.el --- Fonts configuration
+
(use-package fontaine
:ensure t
:config
nihil fit ex nihilo