-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.el
32 lines (26 loc) · 839 Bytes
/
init.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
;;; init --- init file of clare
;;;
;;; Commentary:
;;;
;;; Code:
;; Emacs 25.1 adds this automatically.
;; However, in this setting package initialization is done by other file.
;; (package-initialize)
(defvar os-name "")
(cond
((memq system-type '(windows-nt ms-dos))
(setq os-name "windows"))
((memq system-type '(darwin))
(setq os-name "mac"))
((memq system-type '(gnu/linux))
(setq os-name "linux"))
)
(setq custom-file (expand-file-name (concat "custom-" os-name ".el") user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
(defconst init-file-path (expand-file-name "init.el" user-emacs-directory))
(defconst yaes-init-path (expand-file-name "yaes/yaes-init.el" user-emacs-directory))
(load yaes-init-path)
;; ;; There is no needs for providing init
;; (provide 'init)
;;; init.el ends here