forked from fperez/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
28 lines (24 loc) · 908 Bytes
/
.emacs
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
;; Emacs configuration - Fernando Perez.
;; Set the names of various config files, Emacs expects these variables to exist
(setq user-init-file
(expand-file-name "init.el"
(expand-file-name ".emacs.conf.d" "~")) )
(setq custom-file
(expand-file-name "custom.el"
(expand-file-name ".emacs.conf.d" "~")) )
;; Load General init ile
(load-file user-init-file)
;; Load options and fonts depending on whether we have a window manager or not
;; This works on OSX, Linux and Windows
(if (display-graphic-p)
(progn
;; if graphic
(load-file "~/.emacs.conf.d/init-wm.el")
(load-file "~/.emacs.conf.d/fonts-wm.el")
)
;; else (optional)
;; In a terminal, use a scheme good for dark backgrounds with ANSI escapes
(load-file "~/.emacs.conf.d/fonts-nw.el")
)
;; Load the Emacs-generated custom file
(load-file custom-file)