-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
78 lines (64 loc) · 2.33 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
69
70
71
72
73
74
75
76
77
(setq coffee-tab-width 4)
(require 'package)
(package-initialize)
(elpy-enable)
;; Add a repo to the packages list
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(show-paren-mode t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Always end a file with a newline
(setq require-final-newline nil)
;; COLOR THEMES
(let ((default-directory "~/.emacs.d/color-theme-6.6.0/"))
(normal-top-level-add-to-load-path '("."))
(normal-top-level-add-subdirs-to-load-path))
(require 'color-theme)
(color-theme-initialize)
(color-theme-charcoal-black)
;; DJANGO MUMAMO MODE (Template Syntax Highlighting)
(autoload 'django-html-mumamo-mode "~/.emacs.d/plugins/nxhtml/autostart.el")
(setq auto-mode-alist
(append '(("\\.html?$" . django-html-mumamo-mode)) auto-mode-alist))
(setq mumamo-background-colors nil)
(add-to-list 'auto-mode-alist '("\\.html$" . django-html-mumamo-mode))
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
(add-to-list 'load-path "~/.emacs.d/functions/")
(load "duplicate.el")
(load "shift_line.el")
(load "visws.el")
;;(load "setnu.el")
(add-hook 'text-mode-hook 'turn-on-setnu-mode)
;; Bind Ctrl+c g as goto-line command
(global-set-key "\C-cg" 'goto-line)
;; spaces instead of tabs
(setq-default indent-tabs-mode nil)
;; Set delete to do what it should
(global-set-key [delete] 'delete-char)
;; Delete Selection Mode
(delete-selection-mode 1)
;; Set HTML tabs to 2 spaces
(add-hook 'html-mode-hook
(lambda()
(setq sgml-basic-offset 2)
(setq indent-tabs-mode t)))
;; Set CSS tabs to 2 spaces
(setq css-indent-offset 2)
;; Set Javascript tabs to 2 spaces
(add-hook 'javascript-mode-hook
'(lambda()
(setq tab-width 2)))