-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
39 lines (33 loc) · 1.2 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
33
34
35
36
37
38
39
;; -----------------------------------------------------------------------------
;; emacs -----------------------------------------------------------------------
;; constants
(defconst +emacs-dir+ (expand-file-name user-emacs-directory))
(defconst +backups-dir+ (concat +emacs-dir+ "backups/"))
(defconst +packages-dir+ (concat +emacs-dir+ "packages/"))
(defconst +session-dir+ (concat +emacs-dir+ "session/"))
(defconst +settings-dir+ (concat +emacs-dir+ "settings/"))
(defconst +themes-dir+ (concat +emacs-dir+ "packages/themes/"))
(defconst +auto-save-interval+ 60) ; 1 min
(defconst +documentation-delay+ 0.5) ; 0.5 sec
(defconst +command-history-size+ 100)
(defconst +file-history-size+ 1000)
(defconst +windows-p+ (eq system-type 'windows-nt))
;; load path
(add-to-list 'load-path +settings-dir+)
(let ((default-directory +settings-dir+))
(normal-top-level-add-subdirs-to-load-path))
;; settings
(require 'set-packages)
(require 'set-startup)
(require 'set-ui)
(require 'set-minibuffer)
(require 'set-files)
(require 'set-backups)
(require 'set-session)
(require 'set-editing)
(require 'set-navigation)
(require 'set-programming)
(require 'set-tools)
(require 'set-perl)
(require 'set-xml)
(require 'set-key-bindings)