summaryrefslogtreecommitdiff
path: root/init.el
blob: 86a29d4b39474f05e3f2a8a659d006f560925bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; init.el --- Load literate configuration file, smart-documents.org.

;;; Commentary:
;; This file's sole purpose is to load our literate configuration file.

;;; Code:

;; First of all, we indicate the path to our literate configuration file.
(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 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.")))

;; (org-babel-load-file (concat my/literate-config ".org"))

(provide 'init)

;;; init.el ends here
Copyright 2019--2024 Marius PETER