From a285834fbba251f4d06f3ce5f1271690657431e1 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 31 Jan 2023 12:54:41 +0100 Subject: [PATCH] Set up all faces in configuration.org --- configuration.org | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/configuration.org b/configuration.org index d5f58f8..7665441 100644 --- a/configuration.org +++ b/configuration.org @@ -102,6 +102,16 @@ (cursor-type 'bar)) #+END_SRC +** Set up some default faces + +#+begin_src emacs-lisp +(use-package faces + :ensure nil + :custom-face + (default ((t (:family "Hack" :foundry "simp" :slant normal :weight normal :height 98 :width normal)))) + (trailing-whitespace ((t (:inherit nil :background "red3"))))) +#+end_src + ** Set up my personal keymap I set it up early so i can use it in ~use-package~ calls immediately. @@ -1462,7 +1472,9 @@ Because I’m a sysadmin, too. (([f10] . whitespace-mode) ([(shift f10)] . global-whitespace-mode) :map gpolonkai/pers-map - ("w" . whitespace-cleanup))) + ("w" . whitespace-cleanup)) + :custom-face + (whitespace-line ((t (:inherit nil :background "orange4"))))) #+END_SRC ** ~eshell~ @@ -1832,7 +1844,9 @@ Highlight point. Sometimes it’s not easy to see. (use-package hl-line :config (when window-system - (global-hl-line-mode))) + (global-hl-line-mode)) + :custom-face + (hl-line ((t (:inherit nil :background "gray25"))))) #+END_SRC ** GNU Globals @@ -2054,7 +2068,9 @@ window. t) :bind (:map ctl-x-map - ("o" . ace-window))) + ("o" . ace-window)) + :custom-face + (aw-leading-char-face ((t (:inherit ace-jump-face-foreground :height 2.0))))) #+END_SRC ** Golden ratio @@ -3048,6 +3064,20 @@ Because that’s still my favourite language. * Org mode +** Outline mode + +This is mostly needed for customizing faces. + +#+begin_src emacs-lisp +(use-package outline + :ensure nil + :custom-face + (outline-1 ((t (:inherit font-lock-function-name-face :overline t :weight bold :height 1.2)))) + (outline-2 ((t (:inherit font-lock-variable-name-face :overline t :weight bold :height 1.1)))) + (outline-3 ((t (:inherit font-lock-keyword-face :overline t :weight bold))))) +#+end_src + +** The main Org config This is a big one; I use a lot of customisation here. #+BEGIN_SRC emacs-lisp