diff options
author | 2011-04-12 13:16:56 +0200 | |
---|---|---|
committer | 2011-04-12 13:16:56 +0200 | |
commit | 8cb832f07339997b3cf83ed5b0fdce7860032d14 (patch) | |
tree | 24a66a5911093fb3187479ca53dad9bd21bcfd7d /emacs.d/10-font-lock.el | |
parent | 68d0bd4ccd27c1524e4f49b3972b0dab511248cd (diff) | |
download | dotfiles-8cb832f07339997b3cf83ed5b0fdce7860032d14.tar.gz dotfiles-8cb832f07339997b3cf83ed5b0fdce7860032d14.zip |
Improved fontlock, added htmlize, set some gvim options
Diffstat (limited to 'emacs.d/10-font-lock.el')
-rw-r--r-- | emacs.d/10-font-lock.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/emacs.d/10-font-lock.el b/emacs.d/10-font-lock.el index a98566c..c130490 100644 --- a/emacs.d/10-font-lock.el +++ b/emacs.d/10-font-lock.el @@ -1,5 +1,5 @@ ;; Currently support for [ ] | & ! . + = - / % * , ( ) < > { } ? : -> -(defun add-my-c-keywords (mode) +(defun add-my-c-keywords (mode append) ;; Add ! at the beginning of font lock (font-lock-add-keywords mode @@ -8,17 +8,18 @@ (font-lock-add-keywords mode '(("\\(->\\|[\\[|.+=&/%*,{}:?<>-]\\|\\]\\)" 1 font-lock-operator-face) - ("\\(;\\)" 1 font-lock-end-statement)) 1)) + ("\\(;\\)" 1 font-lock-end-statement)) append)) (defun add-my-php-keywords (mode) - (add-my-c-keywords mode) + (add-my-c-keywords mode 1) (font-lock-add-keywords mode ;; Currently support for => '(("\\(\\=>\\)" 1 font-lock-operator-face)))) -(add-my-c-keywords 'c-mode) +(add-my-c-keywords 'c-mode 1) (add-my-php-keywords 'php-mode) +(add-my-c-keywords 'javascript-mode nil) (make-face 'font-lock-operator-face) (make-face 'font-lock-end-statement) |