summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/init.el b/init.el
index 81157c0..695891b 100644
--- a/init.el
+++ b/init.el
@@ -6,17 +6,15 @@
;;; Code:
;; First of all, we indicate the path to our literate configuration file.
-(setq my/literate-config (concat user-emacs-directory "smart-documents.org"))
+(setq my/literate-config (concat user-emacs-directory "smart-documents"))
;; Emacs will startup faster next time, because it will load
;; a byte-compiled version of our literate configuration file.
-(cond ((file-exists-p (concat (file-name-sans-extension my/literate-config) ".elc"))
- (load (concat (file-name-sans-extension my/literate-config) ".elc")))
- ((file-exists-p (concat (file-name-sans-extension my/literate-config) ".el"))
- (load (concat (file-name-sans-extension my/literate-config) ".el")))
- ((file-exists-p my/literate-config)
- (org-babel-load-file my/literate-config))
- (t (message "There appears to be no literate configuration file. Reinstall?")))
+(cond ((file-exists-p (concat my/literate-config ".el"))
+ (load my/literate-config))
+ ((file-exists-p (concat my/literate-config ".org"))
+ (org-babel-load-file (concat my/literate-config ".org")))
+ (t (message "No literate configuration file detected.")))
(provide 'init)
Copyright 2019--2024 Marius PETER