-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs
48 lines (35 loc) · 1.39 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
(setq-default c-basic-offset 4
tab-width 4
indent-tabs-mode nil)
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time
(setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling
(setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse
(setq scroll-step 1) ;; keyboard scroll one line at a time
(setq backup-directory-alist `(("." . "~/.saves")))
(setq backup-by-copying t)
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "C-S-z") 'redo)
(global-set-key (kbd "C-o") 'ace-window)
(global-set-key (kbd "C-.") 'find-tag)
(global-set-key (kbd "C-,") 'pop-tag-mark)
;;(require 'ido)
;;(ido-mode t)
(cua-mode t)
(linum-mode t)
(global-linum-mode)
; Make org mode support shift-select
(setq org-replace-disputed-keys t)
(global-set-key (kbd "C-.") 'find-tag)
(global-set-key (kbd "C-,") 'pop-tag-mark)
(setenv "MANWIDTH" "72")
(global-set-key (kbd "C-w") 'kill-this-buffer)
(setq tramp-default-method "ssh")
;;(setq tramp-ssh-controlmaster-options
;; (concat
;; "-o ControlPath=/tmp/%h_%p_%r_ssh_mux "
;; "-o ControlMaster=auto"))
(custom-set-variables
'(initial-frame-alist (quote ((fullscreen . maximized)))))
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")))