Improved fontlock, added htmlize, set some gvim options

This commit is contained in:
Tom Willemsen 2011-04-12 13:16:56 +02:00
parent 68d0bd4ccd
commit 8cb832f073
3 changed files with 1682 additions and 4 deletions

View file

@ -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)

1671
emacs.d/elisp/htmlize.el Normal file

File diff suppressed because it is too large Load diff

6
vimrc
View file

@ -22,6 +22,12 @@ set tabstop=2
set shiftwidth=2
set nowrap
" GUI settings
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
set guifont=tamsyn\ 15
" Swap file location
set backupdir=/var/tmp//
set directory=/var/tmp//