From 7fbdd0979f86c01258e9d4fc4bb27c1f6dde7951 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Tue, 4 Jun 2024 23:18:21 -0400 Subject: [PATCH] Reorganization: Beginning --- main.org | 77 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 28 deletions(-) diff --git a/main.org b/main.org index 746580f..8724d84 100644 --- a/main.org +++ b/main.org @@ -7,13 +7,14 @@ #+author: #+language: en -* Intialization +* Initialization + +** Leaf.el We must initialize =leaf.el=, which we use as a use-package -replacement for defining configs for different things. +replacement for defining configs and relations between packages etc. #+begin_src elisp :tangle yes - ;; (eval-and-compile (customize-set-variable 'package-archives '(("org" . "https://orgmode.org/elpa/") @@ -34,7 +35,6 @@ replacement for defining configs for different things. :config ;; initialize leaf-keywords.el (leaf-keywords-init))) - ;; (leaf leaf-tree :ensure t) (leaf leaf-convert :ensure t) @@ -43,6 +43,26 @@ replacement for defining configs for different things. :bind (("M-=" . transient-dwim-dispatch))) #+end_src +** Performance + +*** Garbage Collection + +#+begin_src elisp :tangle yes + (leaf gcmh :ensure t + :hook (after-init-hook)) +#+end_src + +*** Profiling +#+begin_src elisp :tangle yes + (leaf esup :disabled nil :ensure t) +#+end_src + +** Emacs Paths + +*** Custom.el + +Ensure that the =custom.el= resides in the users' emacs directory. + #+begin_src elisp :tangle yes (leaf custom-el :config @@ -51,6 +71,10 @@ replacement for defining configs for different things. (load custom-file 'noerror 'nomessage)) #+end_src +*** Backups + +Set the backups directory to reside in the users' emacs directory. + #+begin_src elisp :tangle yes (leaf backup :config @@ -59,26 +83,6 @@ replacement for defining configs for different things. `(("." . ,(concat user-emacs-directory "backups"))))) #+end_src -* Visual Customization - -#+begin_src elisp :tangle yes -(leaf visual - :doc "Visual Changes to Emacs" - :tag "builtin" "internal" - :custom ((menu-bar-mode . nil) - (tool-bar-mode . nil) - (scroll-bar-mode . nil)) - :custom-face ((default . '((t (:family "JuliaMono" - :height 150 - :weight normal))))) - :config (prog1 'visual - ;; Set location of custom theme dir - (setq custom-theme-directory (concat user-emacs-directory "themes")) - (load-theme 'UniverseHighContrast))) -#+end_src - -* Package Configuration - ** Path Preservation Exec-path-from-shell ensures that path variable is preserved from @@ -90,6 +94,26 @@ shell. (exec-path-from-shell-initialize)) #+end_src +* Visual Customization + +Visual Theme of Emacs config: defined in the =themes= directory. + +#+begin_src elisp :tangle yes + (leaf visual + :doc "Visual Changes to Emacs" + :tag "builtin" "internal" + :custom ((menu-bar-mode . nil) + (tool-bar-mode . nil) + (scroll-bar-mode . nil)) + :custom-face ((default . '((t (:family "JuliaMono" + :height 150 + :weight normal))))) + :config + ;; Set location of custom theme dir + (setq custom-theme-directory (concat user-emacs-directory "themes")) + (load-theme 'UniverseHighContrast)) +#+end_src + ** Font Related *** Ligature @@ -124,10 +148,7 @@ Font related ligatures, combining multiple characters into "one". (global-ligature-mode t)) #+end_src -** Profiling -#+begin_src elisp :tangle yes - (leaf esup :disabled nil :ensure t) -#+end_src +* Package Configuration ** Version Control #+begin_src elisp :tangle yes