From 980911c5cc67874c96b112f8da8afbef49d7e71d Mon Sep 17 00:00:00 2001 From: dx Date: Sat, 2 May 2020 07:13:42 +0100 Subject: ~setq -> defvar: custom variables in gentemplate defvar allows me to add some documentation on what they are and how to use them, always nice. --- Doom/.doom.d/modules/private/gentemplate/config.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Doom/.doom.d/modules/private/gentemplate/config.el b/Doom/.doom.d/modules/private/gentemplate/config.el index 5f00084..20ab4ca 100644 --- a/Doom/.doom.d/modules/private/gentemplate/config.el +++ b/Doom/.doom.d/modules/private/gentemplate/config.el @@ -2,8 +2,13 @@ (require 'cl) -(setq +gentemplate/template-list (list "CTemplate" "CPPTemplate" "PythonTemplate" "NodeTemplate" "ArduinoTemplate" "JavaTemplate")) -(setq +gentemplate/profile-url "https://github.com/oreodave/") +(defvar +gentemplate/profile-url + "https://github.com/oreodave/" + "Profile to download templates from on github.") + +(defvar +gentemplate/template-list + (list "CTemplate" "CPPTemplate" "PythonTemplate" "NodeTemplate" "ArduinoTemplate" "JavaTemplate") + "List of templates to use, relative to the profile-url") (defun +gentemplate/offline () (eq (list-length (network-interface-list)) 1)) -- cgit v1.2.3-13-gbd6f