~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:
@@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
(require 'cl)
|
(require 'cl)
|
||||||
|
|
||||||
(setq +gentemplate/template-list (list "CTemplate" "CPPTemplate" "PythonTemplate" "NodeTemplate" "ArduinoTemplate" "JavaTemplate"))
|
(defvar +gentemplate/profile-url
|
||||||
(setq +gentemplate/profile-url "https://github.com/oreodave/")
|
"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 ()
|
(defun +gentemplate/offline ()
|
||||||
(eq (list-length (network-interface-list)) 1))
|
(eq (list-length (network-interface-list)) 1))
|
||||||
|
|||||||
Reference in New Issue
Block a user