-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
32 lines (25 loc) · 1.42 KB
/
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.el --- Where all the magic begins
;; ----------------------------------------------------------------------------
;; Turn off early in startup to avoid momentary display
;; ----------------------------------------------------------------------------
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
;; ----------------------------------------------------------------------------
;; Work around a bug on OS X where system-name is FQDN
;; ----------------------------------------------------------------------------
(cond ((eq system-type 'darwin)
(setq system-name (car (split-string system-name "\\.")))))
;; ----------------------------------------------------------------------------
;; Global variables
;; ----------------------------------------------------------------------------
(setq dotfiles-dir
(file-name-directory (or (buffer-file-name) load-file-name)))
(setq local-dir (expand-file-name "local" dotfiles-dir))
(setq vendor-dir (expand-file-name "vendor" dotfiles-dir))
(setq cache-dir (expand-file-name "cache" dotfiles-dir))
(setq utils-dir (expand-file-name "utils" dotfiles-dir))
(setq system-dirs (expand-file-name "system-dirs" dotfiles-dir))
(setq system-specific-dir (expand-file-name system-name system-dirs))
(setq config-dir (expand-file-name "config-files" dotfiles-dir))
(load-file (expand-file-name "rds-paths.el" local-dir))
(require 'rds-init)