-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
42 lines (38 loc) · 1.69 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
(add-to-list 'load-path (concat user-emacs-directory "site-lisp"))
(add-to-list 'load-path (concat user-emacs-directory "site-lisp/org"))
(require 'userloaddefs)
(dolist (feature '(package
provided-delayed-inits
unprovided-delayed-inits
disp-table))
(load (concat user-emacs-directory "inits/" (symbol-name feature))))
(setq mode-line-client `(""
(:propertize ("" (:eval (if server-buffer-clients "@" "")))
help-echo ,(purecopy "emacsclient frame")))
mode-line-front-space '(:eval (if (display-graphic-p)
(concat (propertize "\u200b" 'display
'((raise -0.125)
(height 1.25)))
" ")
"-")))
(setq-default indent-tabs-mode nil
indicate-buffer-boundaries t)
(setq gc-cons-threshold 20000000
overlay-arrow-string "►"
switch-to-buffer-preserve-window-point t)
(column-number-mode)
(desktop-save-mode)
(hide-mode-line)
(evil-mode)
(ido-mode)
(ido-ubiquitous-mode)
(flx-ido-mode)
(global-company-mode)
(load-theme 'now t)
(show-paren-mode)
(global-set-key (kbd "C-x C-o") 'other-window)
(add-to-list 'auto-mode-alist (cons (purecopy "\\.sch\\'") 'xml-mode))
(add-to-list 'auto-mode-alist (cons (purecopy "\\.xsd\\'") 'xml-mode))
(add-to-list 'auto-mode-alist (cons (purecopy "\\.at\\'") 'm4-mode))
(add-to-list 'auto-mode-alist (cons (purecopy "\\.jsx\(inc\)?\\'") 'js-mode))
(add-to-list 'xref-backend-functions 'gxref-xref-backend)