From 4521f9427927a9448fdaab68cc92bafb9f438718 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Tue, 7 May 2024 01:28:50 -0400 Subject: [PATCH] Explicitly state tangles for config.el --- emacs/config.el | 5 ----- emacs/config.org | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/emacs/config.el b/emacs/config.el index 1e2a087..3c027db 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -1,8 +1,3 @@ -;;; -*- lexical-binding: t; -*- - -;;; This file is generated via tangles from the config.org file. Do not modify this file. -;;; Any modifications here will be clobbered and versioned over. Seriously just don't. - ;;; -*- lexical-binding: t; -*- ;;; This file is generated via tangles from the config.org file. Do not modify this file. ;;; Any modifications here will be clobbered and versioned over. Seriously just don't. diff --git a/emacs/config.org b/emacs/config.org index 65f5079..9484fa0 100644 --- a/emacs/config.org +++ b/emacs/config.org @@ -292,7 +292,8 @@ Rather than the boring ascii doom logo. Lets some the one off the box art. This #+CAPTION:Doom Welcome Icon [[./.resources/doom.png]] -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no + (setq fancy-splash-image (concat doom-user-dir "./.resources/doom.png")) #+end_src ** Editor @@ -351,7 +352,7 @@ grammar ; tasing grammar mistake every you make #+end_src *** Custom Dictionary -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (setq ispell-dictionary "en" ispell-personal-dictionary "~/org/.ispell.en.pws") #+end_src @@ -527,7 +528,7 @@ literate ** Window Titlebar The titlebar display string will display =♢= if there exist unsaved buffer modifications & =♦= otherwise. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (setq doom-fallback-buffer-name "Doom" +doom-dashboard-name "Doom Dashboard") @@ -548,7 +549,7 @@ The titlebar display string will display =♢= if there exist unsaved buffer mod ** Fonts I use the [[https://www.nerdfonts.com/][nerdfont]]'s [[https://github.com/i-tu/Hasklig][Hasklig]] for my monospace font & Huerta Tipografica's [[https://www.huertatipografica.com/en/fonts/alegreya-ht-pro][ Alegreya]] serif font. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (setq doom-font (font-spec :family "Hasklig" :size 14 :height 1) doom-variable-pitch-font (font-spec :family "Alegreya" :height 1.3) doom-big-font (font-spec :family "Hasklig" :size 18)) @@ -557,7 +558,7 @@ I use the [[https://www.nerdfonts.com/][nerdfont]]'s [[https://github.com/i-tu/H * Keys Keybinds should be centralized in =$DOOMDIR/+keybinds.el=. This is loaded from =$DOOMDIR/config.el= file via -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (load! "+keybinds") #+end_src @@ -590,7 +591,7 @@ Lets set the local leader to =,=. We may want to remap this to =;= later. Both o ** Speedup =whichkey= response =whichkey= is slow to respond, lets make it a bit faster. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (setq which-key-idle-delay 0.1) #+end_src @@ -603,13 +604,13 @@ Some files we'll need to set the major-mode for manually. Either based on where #+end_src ** Tridactyl I am currently using Firefox with [[https://github.com/tridactyl/tridactyl][Tridactyl]]. The =editorcmd= creates a temporary file & opens it with the editor of choice. The domain is included in the temporary file name, but its a fair assumption that it will markdown. We can use this to set the syntax of the file in question. This likely just be markdown. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (add-to-list 'auto-mode-alist '("/\\(tmp\\|private/var\\)/.*/tmp_.*\\.txt" . markdown-mode)) #+end_src * Orgmode This file will be needed for emacs batch automation, where its not reasonable to start up my entire working env. This file can be located at =$DOOMDIR/+orgmode.el=. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (load! "+orgmode") #+end_src ** Importing org @@ -982,7 +983,7 @@ GPT is more useful than I thought. Its incredibly helpful for writing prose whic (package! gptel) #+END_SRC -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle "config.el" :noweb no-export :comments no (use-package! gptel) #+end_src