Add modification warnings to emacs configuration.

This commit is contained in:
James Patrick 2023-01-30 14:58:25 -05:00
parent a169dc29ca
commit c970a86cd6
5 changed files with 28 additions and 0 deletions

View File

@ -1,5 +1,8 @@
;;; +keybinds.el -*- lexical-binding: t; -*- ;;; +keybinds.el -*- 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.
(setq doom-localleader-key ",") (setq doom-localleader-key ",")
(map! :leader (map! :leader

View File

@ -1,5 +1,8 @@
;;; +orgmode.el -*- lexical-binding: t; -*- ;;; +orgmode.el -*- 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.
(require 'org) (require 'org)
(custom-set-variables '(org-directory "~/org/")) (custom-set-variables '(org-directory "~/org/"))

View File

@ -1,5 +1,8 @@
;;; config.el -*- lexical-binding: t; -*- ;;; config.el -*- 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.
(setq which-key-idle-delay 0.1) (setq which-key-idle-delay 0.1)
(setq doom-fallback-buffer-name "Doom" (setq doom-fallback-buffer-name "Doom"

View File

@ -70,6 +70,14 @@ There [[https://nullprogram.com/blog/2016/12/22/][minor but non-zero start time
replace =config.el= with the filename being loaded. replace =config.el= with the filename being loaded.
*** Warn user to modify =*.el= files directly.
#+name:modification-warning
#+begin_src emacs-lisp
;;; 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.
#+end_src
*** Speedup =whichkey= response *** Speedup =whichkey= response
=whichkey= is slow to respond, lets make it a bit faster. =whichkey= is slow to respond, lets make it a bit faster.
@ -114,6 +122,7 @@ The configuration is below is pulled from the template =init.example.el= provide
#+attr_html: :collapsed t #+attr_html: :collapsed t
#+begin_src emacs-lisp :tangle "init.el" :noweb no-export :comments no #+begin_src emacs-lisp :tangle "init.el" :noweb no-export :comments no
;;; init.el -*- lexical-binding: t; -*- ;;; init.el -*- lexical-binding: t; -*-
<<modification-warning>>
;; This file controls what Doom modules are enabled and what order they load ;; This file controls what Doom modules are enabled and what order they load
;; in. Remember to run 'doom sync' after modifying it! ;; in. Remember to run 'doom sync' after modifying it!
@ -471,6 +480,10 @@ Below is a sample snippet from Rameez Khan's [[https://rameezkhan.me/posts/2020/
;;; +keybinds.el -*- lexical-binding: t; -*- ;;; +keybinds.el -*- lexical-binding: t; -*-
#+end_src #+end_src
*** Modification warning message.
#+begin_src emacs-lisp :tangle "+keybinds.el" :noweb no-export :comments no
<<modification-warning>>
#+end_src
*** Local Leader *** Local Leader
Lets set the local leader to =,=. We may want to remap this to =;= later. Both of these seem to have issues with potential key conflicts with evil-snipe. This seems to primarily exists with regards to org-mode. Github issue can be found [[https://github.com/doomemacs/doomemacs/issues/4242][here]]. Lets set the local leader to =,=. We may want to remap this to =;= later. Both of these seem to have issues with potential key conflicts with evil-snipe. This seems to primarily exists with regards to org-mode. Github issue can be found [[https://github.com/doomemacs/doomemacs/issues/4242][here]].
@ -509,6 +522,10 @@ This file will be needed for emacs batch automations, where its not reasonable t
;;; +orgmode.el -*- lexical-binding: t; -*- ;;; +orgmode.el -*- lexical-binding: t; -*-
#+end_src #+end_src
*** Modification warning message.
#+begin_src emacs-lisp :tangle "+orgmode.el" :noweb no-export :comments no
<<modification-warning>>
#+end_src
*** Importing org *** Importing org
This file may get consumed via emacs batch scripting, so we need ot make sure the orgmode is actually loaded. This file may get consumed via emacs batch scripting, so we need ot make sure the orgmode is actually loaded.

View File

@ -1,4 +1,6 @@
;;; init.el -*- lexical-binding: t; -*- ;;; init.el -*- 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.
;; This file controls what Doom modules are enabled and what order they load ;; This file controls what Doom modules are enabled and what order they load
;; in. Remember to run 'doom sync' after modifying it! ;; in. Remember to run 'doom sync' after modifying it!