Improved fontlock, added htmlize, set some gvim options
This commit is contained in:
parent
68d0bd4ccd
commit
8cb832f073
3 changed files with 1682 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
;; Currently support for [ ] | & ! . + = - / % * , ( ) < > { } ? : ->
|
;; Currently support for [ ] | & ! . + = - / % * , ( ) < > { } ? : ->
|
||||||
(defun add-my-c-keywords (mode)
|
(defun add-my-c-keywords (mode append)
|
||||||
;; Add ! at the beginning of font lock
|
;; Add ! at the beginning of font lock
|
||||||
(font-lock-add-keywords
|
(font-lock-add-keywords
|
||||||
mode
|
mode
|
||||||
|
@ -8,17 +8,18 @@
|
||||||
(font-lock-add-keywords
|
(font-lock-add-keywords
|
||||||
mode
|
mode
|
||||||
'(("\\(->\\|[\\[|.+=&/%*,{}:?<>-]\\|\\]\\)" 1 font-lock-operator-face)
|
'(("\\(->\\|[\\[|.+=&/%*,{}:?<>-]\\|\\]\\)" 1 font-lock-operator-face)
|
||||||
("\\(;\\)" 1 font-lock-end-statement)) 1))
|
("\\(;\\)" 1 font-lock-end-statement)) append))
|
||||||
|
|
||||||
(defun add-my-php-keywords (mode)
|
(defun add-my-php-keywords (mode)
|
||||||
(add-my-c-keywords mode)
|
(add-my-c-keywords mode 1)
|
||||||
(font-lock-add-keywords
|
(font-lock-add-keywords
|
||||||
mode
|
mode
|
||||||
;; Currently support for =>
|
;; Currently support for =>
|
||||||
'(("\\(\\=>\\)" 1 font-lock-operator-face))))
|
'(("\\(\\=>\\)" 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-php-keywords 'php-mode)
|
||||||
|
(add-my-c-keywords 'javascript-mode nil)
|
||||||
|
|
||||||
(make-face 'font-lock-operator-face)
|
(make-face 'font-lock-operator-face)
|
||||||
(make-face 'font-lock-end-statement)
|
(make-face 'font-lock-end-statement)
|
||||||
|
|
1671
emacs.d/elisp/htmlize.el
Normal file
1671
emacs.d/elisp/htmlize.el
Normal file
File diff suppressed because it is too large
Load diff
6
vimrc
6
vimrc
|
@ -22,6 +22,12 @@ set tabstop=2
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
set nowrap
|
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
|
" Swap file location
|
||||||
set backupdir=/var/tmp//
|
set backupdir=/var/tmp//
|
||||||
set directory=/var/tmp//
|
set directory=/var/tmp//
|
||||||
|
|
Loading…
Reference in a new issue