-
Notifications
You must be signed in to change notification settings - Fork 1
/
native.el
59 lines (42 loc) · 1016 Bytes
/
native.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
;; selection highlight
(delete-selection-mode 1)
;; show line numbers
(line-number-mode 1)
;; show column number
(column-number-mode 1)
;; show matching parens
(show-paren-mode 1)
;; show current function
(which-func-mode 1)
;; auto-complete
(icomplete-mode 1)
;; paren highlight
(show-paren-mode 1)
;; remove toolbar
(tool-bar-mode 0)
;; remove menu
(menu-bar-mode 0)
;; Turn off bugging yes-or-no-p
(fset 'yes-or-no-p 'y-or-n-p)
;; Default window navigation bindings
(windmove-default-keybindings)
;; Shell colors
(ansi-color-for-comint-mode-on)
;; mouse avoidance
(mouse-avoidance-mode "animate")
;; Activate dired and tramp
(require 'dired)
(require 'dired-x)
(require 'wdired)
(require 'tramp)
;; Make repeated buffer names more verbose
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
;; Disable icomplete-mode
(icomplete-mode 0)
;; Keep each line on its own
(setq truncate-lines 1)
;; indent to 4 spaces
(setq indent-tabs-mode t
tab-width 4
python-indent 4)