~setq -> defvar: custom variables in gentemplate

defvar allows me to add some documentation on what they are and how to
use them, always nice.
This commit is contained in:
dx
2020-05-02 07:13:42 +01:00
parent 2db13f5d3d
commit 980911c5cc

View File

@@ -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))