|
|
@ -38,12 +38,14 @@
|
|
|
|
;; Helper function for loading elisp files
|
|
|
|
;; Helper function for loading elisp files
|
|
|
|
(defun load-elisp-if-exists (f)
|
|
|
|
(defun load-elisp-if-exists (f)
|
|
|
|
"load the elisp file only if it exists and is readable"
|
|
|
|
"load the elisp file only if it exists and is readable"
|
|
|
|
(if (file-readable-p f)
|
|
|
|
(if (and (file-exists-p f)
|
|
|
|
|
|
|
|
(file-readable-p f))
|
|
|
|
(load-file f)))
|
|
|
|
(load-file f)))
|
|
|
|
;; Helper function for loading org-mode files
|
|
|
|
;; Helper function for loading org-mode files
|
|
|
|
(defun load-orgfile-if-exists (f)
|
|
|
|
(defun load-orgfile-if-exists (f)
|
|
|
|
"load the elisp file only if it exists and is readable"
|
|
|
|
"load the elisp file only if it exists and is readable"
|
|
|
|
(if (file-readable-p f)
|
|
|
|
(if (and (file-exists-p f)
|
|
|
|
|
|
|
|
(file-readable-p f))
|
|
|
|
(org-babel-load-file f)))
|
|
|
|
(org-babel-load-file f)))
|
|
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|