-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
98 lines (64 loc) · 2.91 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
88
89
90
91
92
93
94
95
96
97
98
;;;; Dyntu setup.
(add-to-list 'load-path "~/.emacs.d/elisp")
(load-library "~/.emacs.d/setup-cask.el")
;;;; - Keybindings -------------------------------------------------------------
;;; Edit `keybindings.el' to change global keybinds.
(load-library "~/.emacs.d/keybindings.el")
;;;; ---------------------------------------------------------------------------
;;;; - Programming customization -----------------------------------------------
(defun programming-customization ()
"Called when entering a programming mode. General programming packages
should add advice after this function. Programming modes should add this
as a hook alongside whatever other hooks they need to run."
(add-to-list 'write-file-functions 'delete-trailing-whitespace))
(defun lisp-customization ()
"Called when entering a lisp mode. Lisp packages should add advice
after this function.")
;;;; ---------------------------------------------------------------------------
;;;; - Color theme -------------------------------------------------------------
(load-theme 'quasi-monochrome t)
;;;; ---------------------------------------------------------------------------
;;;; - Package installation ----------------------------------------------------
;;; Edit `packages.el' to change package customization.
(load-library "~/.emacs.d/packages.el")
;;;; ---------------------------------------------------------------------------
;;;; - Customizes --------------------------------------------------------------
;;; Edit `customize.el' to change customizes.
(setq custom-file "~/.emacs.d/customize.el")
(load custom-file)
;;;; ---------------------------------------------------------------------------
;;;; - General stuff -----------------------------------------------------------
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq default-left-margin-width nil)
(setq default-right-margin-width nil)
(setq inhibit-startup-message t)
(setq inhibit-startup-echo-message t)
(global-subword-mode 1)
(fset 'yes-or-no-p 'y-or-n-p)
(setq confirm-nonexistant-file-or-buffer nil)
(setq kill-buffer-query-functions
(remq 'process-kill-buffer-query-function
kill-buffer-query-functions))
(tooltip-mode -1)
(setq tooltip-use-echo-area t)
(setq ring-bell-function (lambda ()))
(setq show-help-function nil)
(setq-default sentence-end "[\\.;:!?] ")
(setq-default make-backup-files nil)
(setq-default truncate-lines t)
(define-globalized-minor-mode global-delete-selection-mode
delete-selection-mode
(lambda ()
(delete-selection-mode 1)))
(global-delete-selection-mode 1)
(show-paren-mode 1)
(blink-cursor-mode 0)
(setq enable-recursive-minibuffers t)
(require 'clean-mode-line)
;;; Tabulation. Important enough for a tag.
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
;;;; - Disbaled commands -------------------------------------------------------
(put 'narrow-to-page 'disabled nil)