about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-02-24 17:42:03 -0600
committerCase Duckworth2021-02-24 17:42:03 -0600
commitab8f63afbf5cb53e954c308e80d19e48b917e689 (patch)
tree4aaf69ec3fdab81947b4641f800996c66bad9405
parentWhitespace (diff)
downloademacs-ab8f63afbf5cb53e954c308e80d19e48b917e689.tar.gz
emacs-ab8f63afbf5cb53e954c308e80d19e48b917e689.zip
Add variable-pitch fonts
-rw-r--r--config.org35
1 files changed, 34 insertions, 1 deletions
diff --git a/config.org b/config.org index 3b0cb9d..2fe07ae 100644 --- a/config.org +++ b/config.org
@@ -385,6 +385,10 @@ On Linux, I have a custom build of Iosevka that I like.
385 (set-face-attribute 'fixed-pitch nil 385 (set-face-attribute 'fixed-pitch nil
386 :family "Iosevka Acdw" 386 :family "Iosevka Acdw"
387 :height 105) 387 :height 105)
388
389 (set-face-attribute 'variable-pitch nil
390 :family "DejaVu Serif"
391 :height 110)
388#+end_src 392#+end_src
389 393
390But on Windows, I use Consolas. 394But on Windows, I use Consolas.
@@ -397,6 +401,10 @@ But on Windows, I use Consolas.
397 (set-face-attribute 'fixed-pitch nil 401 (set-face-attribute 'fixed-pitch nil
398 :family "Consolas" 402 :family "Consolas"
399 :height 100) 403 :height 100)
404
405 (set-face-attribute 'variable-pitch nil
406 :family "Cambria"
407 :height 105)
400#+end_src 408#+end_src
401 409
402*** Underlines 410*** Underlines
@@ -512,7 +520,13 @@ issue.
512 (blackout 'form-feed-mode) 520 (blackout 'form-feed-mode)
513#+end_src 521#+end_src
514 522
515** Theming 523*** =variable-pitch= fonts in =text-mode=
524
525#+begin_src emacs-lisp :noweb-ref modes
526 (add-hook 'text-mode-hook #'variable-pitch-mode)
527#+end_src
528
529** Theme
516 530
517*** Modus themes :package: 531*** Modus themes :package:
518 532
@@ -535,6 +549,25 @@ I want the git version.
535 modus-themes-mode-line nil) 549 modus-themes-mode-line nil)
536#+end_src 550#+end_src
537 551
552**** Force headings to be =fixed-pitch=
553
554To enable the proper alignment of Org tags, I want headings to inherit from the
555=fixed-pitch= family as well as themselves. This paves the way to enable
556=variable-pitch-mode= in Emacs.
557
558#+begin_src emacs-lisp :noweb-ref settings
559 (dolist (face '(modus-theme-heading-1
560 modus-theme-heading-2
561 modus-theme-heading-3
562 modus-theme-heading-4
563 modus-theme-heading-5
564 modus-theme-heading-6
565 modus-theme-heading-7
566 modus-theme-heading-8))
567 (doremi-face-set face
568 '((t (:inherit (face fixed-pitch bold))))))
569#+end_src
570
538*** Change themes based on time of day 571*** Change themes based on time of day
539 572
540#+begin_src emacs-lisp :noweb-ref functions 573#+begin_src emacs-lisp :noweb-ref functions