-
Notifications
You must be signed in to change notification settings - Fork 1
/
.emacs
36 lines (29 loc) · 1.03 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
;; Highlight regions and add special behaviors to regions
;; 'C-h transient' for more info
(setq transient-mark-mode t)
;; Display line and column numbers
(setq line-number-mode t)
(setq column-number-mode t)
;; 'y or n' instead of 'yes or no'
(fset 'yes-or-no-p 'y-or-n-p)
;; Gotta see matching parens
(show-paren-mode t)
;; Make sure all backup files only file in one place
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
;; trail whitespace is unnecessary
(add-hook 'before-save-hook (lambda () (delete-trailing-whitespace)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Auto complete
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(ac-config-default)
;; Select candidates with C-n/C-p only when completion menu is displayed
(setq ac-use-menu-map t)
;; Default settings
(define-key ac-menu-map "\C-n" 'ac-next)
(define-key ac-menu-map "\C-p" 'ac-previous)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Auto complete
;;;;;;;;;;;;;;;;;;;;;;;;;;;;