-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
executable file
·68 lines (47 loc) · 1.49 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
;(require 'server)
;(when (and (= emacs-major-version 23) (equal window-system 'w32))
; (defun server-ensure-safe-dir (dir) "Noop" t)) ; Suppress error "directory
; ~/.emacs.d/server is unsafe"
; on windows.
;(server-start)
;;System Settings
;customize path
(setq elisp-path "~/.emacs.d/elisp/")
(add-to-list 'load-path elisp-path)
;make buffers' name unique, add path info to name
(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward-angle-brackets)
;backup files to specific directory, keep five last versions
(setq version-control t)
(setq backup-directory-alist '((".*" . "~/.saves")))
(setq auto-save-file-name-transforms `((".*" "~/.saves/\\2" t)))
;no starup message
(setq inhibit-startup-message t)
(ido-mode t)
(column-number-mode t)
;don't need menu-bar
(menu-bar-mode -1)
;disable version control
(setq vc-handled-backends nil)
;;Display Settings
;hightlight files like ini,batch
(require 'generic-x)
;default in text-mode
(setq default-major-mode 'text-mode)
;default tab-width
(setq-default tab-width 4)
;(global-hl-line-mode t)
(setq-default truncate-lines t)
;括号配对
(show-paren-mode t)
;;Edit Settings
;indent using space
(setq-default indent-tabs-mode nil)
;enable del selection text
(delete-selection-mode t)
(icomplete-mode t)
;load X window special setting
(if (display-graphic-p) (load "xlisp") (load-theme 'wombat))
(load "develop")
(load "elisp")
(load "customkey")