(Emacs/elisp)~rework literate.el
This commit is contained in:
@@ -48,10 +48,9 @@
|
|||||||
(defun +literate/el-p (filename)
|
(defun +literate/el-p (filename)
|
||||||
(string= "el" (file-name-extension filename)))
|
(string= "el" (file-name-extension filename)))
|
||||||
|
|
||||||
(defun +literate/--reduce-bool (bools init)
|
(defun +literate/--reduce-bool (bools)
|
||||||
(if (= (length bools) 0)
|
"Return T if all element of BOOLS are truthy i.e. not nil."
|
||||||
init
|
(cl-every #'identity bools))
|
||||||
(+literate/--reduce-bool (cdr bools) (and (car bools) init))))
|
|
||||||
|
|
||||||
;; Files
|
;; Files
|
||||||
(defconst +literate/org-files
|
(defconst +literate/org-files
|
||||||
@@ -112,7 +111,7 @@
|
|||||||
(load-file (+literate/org-to-el org-file)))
|
(load-file (+literate/org-to-el org-file)))
|
||||||
|
|
||||||
(defun +literate/load-config ()
|
(defun +literate/load-config ()
|
||||||
"Load the config.el."
|
"Load config.el"
|
||||||
(interactive)
|
(interactive)
|
||||||
(mapcar #'+literate/tangle-if-old +literate/org-files)
|
(mapcar #'+literate/tangle-if-old +literate/org-files)
|
||||||
(load-file (concat user-emacs-directory "config.el")))
|
(load-file (concat user-emacs-directory "config.el")))
|
||||||
|
|||||||
Reference in New Issue
Block a user