From dfc0755e4e9c0034cd99bac88ae1f63bff33effe Mon Sep 17 00:00:00 2001 From: Micheal Smith Date: Thu, 30 Oct 2025 13:42:01 -0500 Subject: [PATCH] Moved formatting section into its own file. --- config.org | 53 +------------------------------------------ config/formatting.org | 52 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 52 deletions(-) create mode 100644 config/formatting.org diff --git a/config.org b/config.org index fa40e6d..57c47dd 100644 --- a/config.org +++ b/config.org @@ -206,58 +206,7 @@ features. #+INCLUDE: "config/general.org" :minlevel 1 -* Blocks, Parentheses and Formatting Oh My! - -** Parentheses, and Structural Editing - -Sometimes if I delete a parenthesis out of hand I spend the next minute or two -kicking myself as I count the parentheses here and there. Well no more! With -[[https://shaunlebron.github.io/parinfer/][Parinfer]] structural editing, and taming parentheses becomes a -breeze. - -#+begin_src emacs-lisp -(use-package parinfer-rust-mode - :ensure t - :init - (setq parinfer-rust-auto-download t) - :hook (emacs-lisp-mode . parinfer-rust-mode)) -#+end_src - -I also have =smart-parens= for parentheses matching in modes where =parinfer= would -be overkill. - -#+begin_src emacs-lisp -(use-package smartparens - :ensure t - :hook (prog-mode text-mode markdown-mode) - :config - (require 'smartparens-config)) -#+end_src - -Might as well highlight the parentheses to make them easier to spot. - -#+begin_src emacs-lisp -(use-package highlight-parentheses - :ensure t - :hook - (prog-mode . highlight-parentheses-mode)) -#+end_src - -** Indentation Level - -#+begin_src emacs-lisp -;; Indent guides -(use-package highlight-indent-guides - :defer t - :hook (prog-mode . highlight-indent-guides-mode)) -#+end_src - -** List, and String Improvements - -#+begin_src emacs-lisp -(use-package dash :ensure t) -(use-package s :ensure t) -#+end_src +#+INCLUDE: "config/formatting.org" :minlevel 1 * Documentation diff --git a/config/formatting.org b/config/formatting.org new file mode 100644 index 0000000..ccb38aa --- /dev/null +++ b/config/formatting.org @@ -0,0 +1,52 @@ +* Blocks, Parentheses and Formatting Oh My! + +** Parentheses, and Structural Editing + +Sometimes if I delete a parenthesis out of hand I spend the next minute or two +kicking myself as I count the parentheses here and there. Well no more! With +[[https://shaunlebron.github.io/parinfer/][Parinfer]] structural editing, and taming parentheses becomes a +breeze. + +#+begin_src emacs-lisp +(use-package parinfer-rust-mode + :ensure t + :init + (setq parinfer-rust-auto-download t) + :hook (emacs-lisp-mode . parinfer-rust-mode)) +#+end_src + +I also have =smart-parens= for parentheses matching in modes where =parinfer= would +be overkill. + +#+begin_src emacs-lisp +(use-package smartparens + :ensure t + :hook (prog-mode text-mode markdown-mode) + :config + (require 'smartparens-config)) +#+end_src + +Might as well highlight the parentheses to make them easier to spot. + +#+begin_src emacs-lisp +(use-package highlight-parentheses + :ensure t + :hook + (prog-mode . highlight-parentheses-mode)) +#+end_src + +** Indentation Level + +#+begin_src emacs-lisp +;; Indent guides +(use-package highlight-indent-guides + :defer t + :hook (prog-mode . highlight-indent-guides-mode)) +#+end_src + +** List, and String Improvements + +#+begin_src emacs-lisp +(use-package dash :ensure t) +(use-package s :ensure t) +#+end_src