-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
35 lines (27 loc) · 899 Bytes
/
.emacs
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
(require 'mouse)
(xterm-mouse-mode t)
(global-set-key [mouse-4] '(lambda ()
(interactive)
(scroll-down 1)))
(global-set-key [mouse-5] '(lambda ()
(interactive)
(scroll-up 1)))
(setq mouse-sel-mode t)
(defun track-mouse (e))
;; one line at a time
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1)))
;; don't accelerate scrolling
(setq mouse-wheel-progressive-speed nil)
;; scroll window under mouse
(setq mouse-wheel-follow-mouse 't)
;; keyboard scroll one line at a time
(setq scroll-step 1)
;; autosave and backups
(setq backup-directory-alist
`((".*" . ,"~/.emacs.d/backup-list")))
(setq auto-save-file-name-transforms
`((".*" ,"~/.emacs.d/auto-save-list")))
;; tabs
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(setq indent-line-function 'insert-tab)