-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite-start.el
47 lines (35 loc) · 1.3 KB
/
site-start.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
;; ---( site.init: begin )-------------------------------------------------------
(message "SITE:begin")
;; ---( logs )--------------------------------------------------------
(setq message-log-max 16384)
(defconst emacs-start-time (current-time))
;; ---( path )--------------------------------------------------------
(setq emacs-site-path (concat (getenv "HOME") "/.emacs-site/")) ;; ~/.emacs-site/
(defun emacs-site (filename)
"Expand FILENAME relative to ~/.emacs-site/ directory."
(expand-file-name filename emacs-site-path))
(defun emacs-home (filename)
"Expand FILENAME relative to ~/. directory."
(expand-file-name filename (getenv "HOME")))
(defun emacs-d (filename)
"Expand FILENAME relative to `user-emacs-directory'."
(expand-file-name filename user-emacs-directory))
;; ---( init )--------------------------------------------------------
(cond
((string-lessp emacs-version "24.3") ;;
(progn
(message "SITE:local, ...")
(load (emacs-site "site-local")) ;; maint/local
(message "SITE:local.")
))
(t
(progn
(message "SITE:boot, ...")
(load (emacs-site "site-boot")) ;; master/package
(message "SITE:boot.")
))
)
;; ---( site.init: end )-------------------------------------------------------
(message "SITE:end")
(provide 'site-start)
;;; site-start.el ends here