forked from magnars/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsane-defaults.el
executable file
·83 lines (59 loc) · 1.94 KB
/
sane-defaults.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
(require 'ansi-color)
(require 'uniquify)
;; Allow pasting selection outside of Emacs
(setq x-select-enable-clipboard t)
;; Auto refresh buffers
;;(global-auto-revert-mode 1)
;; Also auto refresh dired
;;(setq global-auto-revert-non-file-buffers t)
;; Show keystrokes in progress
(setq echo-keystrokes 0.1)
;; No splash screen please ... jeez
(setq inhibit-startup-message t)
;; Move files to trash when deleting
(setq delete-by-moving-to-trash t)
;; Real emacs knights don't use shift to mark things
(setq shift-select-mode nil)
;; Transparently open compressed files
(auto-compression-mode t)
;; Enable syntax highlighting for older Emacsen that have it off
(global-font-lock-mode t)
;; Answering just 'y' or 'n' will do
(defalias 'yes-or-no-p 'y-or-n-p)
;; UTF-8 please
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
;; Show active region
(transient-mark-mode 1)
;; Remove text in active region if inserting text
(delete-selection-mode nil)
;; Always display line and column numbers
(setq line-number-mode t)
(setq column-number-mode t)
;; Lines should be 80 characters wide, not 72
(setq fill-column 80)
;; Never insert tabs
(set-default 'indent-tabs-mode nil)
;; Show me empty lines after buffer end
(set-default 'indicate-empty-lines t)
;; Allow scrolling with mouse wheel
(when (fboundp 'mouse-wheel-mode) (mouse-wheel-mode t))
;; Don't break lines for me, please
(setq-default truncate-lines t)
;; Keep cursor away from edges when scrolling up/down
(require 'smooth-scrolling)
(setq smooth-scroll t)
(setq smooth-scroll/vscroll-setp-size 3)
;; Add parts of each file's directory to the buffer name if not unique
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
(setq gc-cons-threshold 35000000)
(setq garbage-collection-messages nil)
(setq debug-on-error nil)
(defun ignore-last-error ()
(interactive)
(add-to-list 'debug-ignored-errors "^$")
;;TODO
)
(provide 'sane-defaults)