-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonal-config-for-init
26 lines (23 loc) · 2.16 KB
/
personal-config-for-init
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
; Navigate to next/prev error
(global-set-key '[M-down] '(lambda () (interactive) (next-error 1)))
(global-set-key '[M-up] '(lambda () (interactive) (next-error -1)))
(put 'downcase-region 'disabled nil)
(delete-selection-mode 1)
(global-set-key [M-mouse-1] 'mouse-set-point)
; Allow hash to be entered
(global-set-key (kbd "M-3") '(lambda () (interactive) (insert "#")))
;Adding a single directory to front of load-path
;‘C-h v load-path RET’ will display load-path
(add-to-list 'load-path "~/.emacs.d/lisp/")
; Installing web-mode.org
(require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(set-face-attribute 'web-mode-html-tag-face nil :foreground "Pink3")
(set-face-attribute 'web-mode-html-attr-name-face nil :foreground "#eae40c")