-
Notifications
You must be signed in to change notification settings - Fork 0
/
general-init.el
38 lines (30 loc) · 928 Bytes
/
general-init.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
;; Enable yasnippet
(yas/initialize)
;; Disable tabs
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
;; Setup whitespace
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(setq require-final-newline)
(setq next-line-add-newlines nil)
;; Show the fill column
(require 'fill-column-indicator)
;; Show column numbers
(column-number-mode)
;; Auto completion
(require 'auto-complete-config)
(ac-config-default)
;; Magit
(add-to-list 'load-path (concat emacs-conf-dir "magit"))
(autoload 'magit-status "magit" nil t)
(global-set-key "\C-cs" 'magit-status)
; (require 'magit-svn)
;; IDO and SMEX
(ido-mode t)
(setq ido-enable-flex-matching t)
(add-to-list 'load-path (concat emacs-conf-dir "smex"))
(require 'smex)
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command) ;; This is old M-x