From 194b5da8fd1d46984408f8aa0d1627e5a5bdae77 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 6 Sep 2025 13:25:07 -0500 Subject: [PATCH] A starting literate config for Doom Emacs --- .config/doom/config.el | 3 +++ .config/doom/config.org | 52 +++++++++++++++++++++++++++++++++++++++++ .config/doom/init.el | 2 +- 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .config/doom/config.org diff --git a/.config/doom/config.el b/.config/doom/config.el index 611f326..9f24ae9 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -52,6 +52,9 @@ ;; numbers are disabled. For relative line numbers, set this to `relative'. (setq display-line-numbers-type t) +(map! :leader + :desc "Comment line" "-" #'comment-line) + ;; If you use `org' and don't want your org files in the default location below, ;; change `org-directory'. It must be set before org loads! diff --git a/.config/doom/config.org b/.config/doom/config.org new file mode 100644 index 0000000..f4923c2 --- /dev/null +++ b/.config/doom/config.org @@ -0,0 +1,52 @@ +#+title: Config + +* Table of Contents :toc: +- [[#doom-settings][Doom Settings]] +- [[#org][Org]] +- [[#other-stuff][Other Stuff]] + +* Doom Settings +#+begin_src emacs-lisp +(setq doom-theme 'doom-one) +(setq doom-font (font-spec :family "JetBrains Mono" :size 15)) + +#+end_src + +* Org +#+begin_src emacs-lisp +(custom-theme-set-faces! +'doom-one +'(org-level-8 :inherit outline-3 :height 1.0) +'(org-level-7 :inherit outline-3 :height 1.0) +'(org-level-6 :inherit outline-3 :height 1.1) +'(org-level-5 :inherit outline-3 :height 1.2) +'(org-level-4 :inherit outline-3 :height 1.3) +'(org-level-3 :inherit outline-3 :height 1.4) +'(org-level-2 :inherit outline-2 :height 1.5) +'(org-level-1 :inherit outline-1 :height 1.6) +'(org-document-title :height 1.8 :bold t :underline nil)) + +(setq org-directory "~/nc/Org/") +(setq org-modern-table-vertical 1) +(setq org-modern-table t) +(add-hook 'org-mode-hook #'hl-todo-mode) + +#+end_src + +* Other Stuff +#+begin_src emacs-lisp +(setq display-line-numbers-type t) + +(map! :leader + :desc "Comment line" "-" #'comment-line) + +;; If you use `org' and don't want your org files in the default location below, +;; change `org-directory'. It must be set before org loads! + + + +(setq confirm-kill-emacs nil) + +(setq initial-buffer-choice 'eshell) + +#+end_src diff --git a/.config/doom/init.el b/.config/doom/init.el index 330d9be..1afc6cd 100644 --- a/.config/doom/init.el +++ b/.config/doom/init.el @@ -191,5 +191,5 @@ (rss +org) ; emacs as an RSS reader :config - ;;literate + literate (default +bindings +smartparens))