-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
executable file
·87 lines (70 loc) · 2.43 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;; -*- mode: emacs-lisp -*-
(setq custom-file
(concat user-emacs-directory
(file-name-as-directory "conf")
"custom.el"))
(defun load-conf (conf-file-name)
(load (concat user-emacs-directory
(file-name-as-directory "conf")
conf-file-name)))
(load-conf "custom.el")
(load-conf "bindings.el")
(load-conf "tabs.el")
(load-conf "frames.el")
(load-conf "windows.el")
(load-conf "packages.el")
(load-conf "mouse.el")
(load-conf "term.el")
(load-conf "visual.el")
(load-conf "highlight.el")
(load-conf "ivy.el")
(load-conf "projectile.el")
(load-conf "mode-line.el")
(load-conf "whitespace.el")
(load-conf "misc.el")
(load-conf "modes/compilation-mode.el")
(load-conf "modes/diff-mode.el")
(load-conf "modes/git-rebase-mode.el")
(load-conf "modes/grep-mode.el")
(load-conf "modes/magit-mode.el")
(load-conf "modes/org-mode.el")
(load-conf "modes/rust-mode.el")
(load-conf "modes/text-mode.el")
(setq backup-directory-alist `(("." . ,(concat user-emacs-directory "backups")))
inhibit-startup-screen t
ring-bell-function 'ignore
smex-save-file (concat user-emacs-directory ".smex-items")
visible-bell nil
enable-recursive-minibuffers t
)
;; Don't uniquify buffer names, instead, always use the entire file path. Note
;; that there are customizations in mode-line.el to accomodate this style of
;; buffer naming.
(setq uniquify-buffer-name-style 'forward
uniquify-min-dir-content 999
)
(setq-default fill-column 79
imenu-auto-rescan t
truncate-lines t
)
(prefer-coding-system 'utf-8)
;; Accept `y` or `n` immediately in a prompt.
(defalias 'yes-or-no-p 'y-or-n-p)
;; Enable `dired-find-alternate-file`. If enabled, pressing the key `a` will
;; replace the existing dired buffer instead of starting a new buffer.
(put 'dired-find-alternate-file 'disabled nil)
(smex-initialize)
(save-place-mode 1)
(load-conf "hack-load-history.el")
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))
;; Set tramp's verbosity (0 = silent, 1 = error, 2 = warning, etc.)
(setq tramp-verbose 1)
;; Use the remote file cache -- potentially improves the speed of some tramp
;; operations.
(setq remote-file-name-inhibit-cache nil)
;; Have save-desktop-mode remember all files, including remote SSH files.
(setq desktop-files-not-to-save "^$")
;; Disable vc's other version control backends.
(setq vc-handled-backends '(Git))
(server-start)