-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.el
52 lines (39 loc) · 1.62 KB
/
conf.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
;;--------------------- General Conf -----------------------
(setq inhibit-startup-message t)
(setq inhibit-splash-screen t) ;Disable splash screen
(put 'erase-buffer 'disabled nil)
(global-visual-line-mode 1) ;Proper line wrapping
; Sentences are finished with dot and ONE space.
(setq sentence-end-double-space nil)
;;--------------------- Buffers ----------------------------
;Shift + arrow = move to another buffer
(windmove-default-keybindings)
; Better buffer view
(global-set-key (kbd "C-x C-b") 'ibuffer)
; Kill the current buffer without asking for confirmation
(global-set-key (kbd "C-x k") 'kill-this-buffer)
;;------------------ Backups and Saves ---------------------
(setq
backup-by-copying t ; No symbolic links
backup-directory-alist '(("." . "~/.emacs.backups/"))
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t)
(defvar autosave-dir (expand-file-name "~/.emacs.saves/"))
(setq auto-save-list-file-prefix autosave-dir)
(setq auto-save-file-name-transforms `((".*" ,autosave-dir t)))
(make-directory autosave-dir t)
;;----------------------- Yes-No ---------------------------
; Make the y or n suffice for a yes or no question
(fset 'yes-or-no-p 'y-or-n-p)
; Allow files to end with a blank line
(setq require-final-newline t)
;;------------------------ Mouse ----------------------------
; Enable the mouse in a regular terminal
(cond (window-system
(mwheel-install)
(setq mouse-wheel-scroll-amount '(2 ((shift) . 1)))
(setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling
(setq mouse-wheel-follow-mosue 't) ;; scroll window under mouse
))