From 9f92b47ce63c32a074471041f35b9383c3488e3d Mon Sep 17 00:00:00 2001 From: Harvey Chapman Date: Wed, 8 Dec 2021 08:47:24 -0500 Subject: [PATCH] Make dotspacemacs config diffs a little smaller... Move closing parens on all dotspacemacs/user-* functions to a new line so the function documentation and closing paren are not part of the config diff when a user runs `SPC f e D`. This should make it faster to check config changes versus the template. --- core/templates/.spacemacs.template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/templates/.spacemacs.template b/core/templates/.spacemacs.template index 2d0098dd6..4efa397c8 100644 --- a/core/templates/.spacemacs.template +++ b/core/templates/.spacemacs.template @@ -519,21 +519,24 @@ This function defines the environment variables for your Emacs session. By default it calls `spacemacs/load-spacemacs-env' which loads the environment variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'. See the header of this file for more information." - (spacemacs/load-spacemacs-env)) + (spacemacs/load-spacemacs-env) +) (defun dotspacemacs/user-init () "Initialization for user code: This function is called immediately after `dotspacemacs/init', before layer configuration. It is mostly for variables that should be set before packages are loaded. -If you are unsure, try setting them in `dotspacemacs/user-config' first.") +If you are unsure, try setting them in `dotspacemacs/user-config' first." +) (defun dotspacemacs/user-load () "Library to load while dumping. This function is called only while dumping Spacemacs configuration. You can `require' or `load' the libraries of your choice that will be included in the -dump.") +dump." +) (defun dotspacemacs/user-config () @@ -541,7 +544,8 @@ dump.") This function is called at the very end of Spacemacs startup, after layer configuration. Put your configuration code here, except for variables that should be set -before packages are loaded.") +before packages are loaded." +) ;; Do not write anything past this comment. This is where Emacs will