-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.el
85 lines (68 loc) · 2.37 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
(tool-bar-mode -1)
(scroll-bar-mode -1)
(when (string= system-type "gnu/linux")
(menu-bar-mode -1))
(setq ring-bell-function 'ignore
visible-bell nil
inhibit-startup-screen t
make-backup-files nil
make-inhibited t
auto-save-default nil
font-lock-maximum-decoration t
auto-revert-verbose nil
org-src-fontify-natively t
gc-cons-threshold 20000000
ido-auto-merge-work-directories-length -1
;;global-auto-revert-non-file-buffers t
ns-right-alternate-modifier nil
comint-process-echoes t
browse-url-browser-function 'browse-url-default-browser
split-height-threshold 100
css-indent-offset 2
js-indent-level 2
dired-hide-details-hide-symlink-targets nil
vc-handled-backends nil ; disable vc-mode-line
calendar-week-start-day 1
browse-url-browser-function 'browse-url-chromium
;; split-width-threshold 100
)
(setq-default indent-tabs-mode nil
tab-width 2)
(push "/usr/local/bin" exec-path)
(push "/opt/local/bin" exec-path)
(setenv "LANG" "en_US.UTF-8")
(set-frame-font "Monospace-12")
(fset 'yes-or-no-p 'y-or-n-p)
(set-variable 'shell-file-name "/bin/bash")
(winner-mode 1)
(show-paren-mode t)
(auto-fill-mode nil)
(blink-cursor-mode -1)
(electric-pair-mode)
(add-hook 'ruby-mode #'electric-pair-mode) ; to disable it for ruby-mode
(global-prettify-symbols-mode 1)
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror)
(when (eq system-type 'darwin)
(setq frame-resize-pixelwise t))
(toggle-frame-maximized)
(add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
(add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode)
(add-hook 'ielm-mode-hook 'turn-on-eldoc-mode)
(eval-after-load "ispell"
'(when (executable-find ispell-program-name)
(add-hook 'text-mode-hook 'turn-on-flyspell)))
(add-to-list 'auto-mode-alist '("\\.css$" . css-mode))
(add-to-list 'auto-mode-alist '("\\.zsh$" . sh-mode))
(add-hook 'after-save-hook
'executable-make-buffer-file-executable-if-script-p)
(add-hook 'dired-mode-hook #'auto-revert-mode)
(add-hook 'dired-mode-hook #'dired-hide-details-mode)
(add-hook 'edebug-mode-hook 'evil-emacs-state)
(add-hook 'sql-interactive-mode 'toggle-truncate-lines)
(load "~/.emacs.d/bindings")
(load "~/.emacs.d/packages")
(asok/install-packages)
(asok/init-packages)
(load "~/.emacs.d/theming")
;; (server-start)