Created
May 11, 2012 09:10
-
-
Save DeaR/2658557 to your computer and use it in GitHub Desktop.
#xyzzy 0.2.2.236で実装したCSS3キーワードをcss+-modeで使う
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun css+-set-local-variable () | |
"css+-modeのlocal-variable設定" | |
(setf mode-name (format nil "CSS+~A" ed::*css-level*)) | |
(setf ed::*css+-completion-list (ed::css-completion-list)) | |
(and (ed::css-keyword-file) | |
(null (ed::css-keyword-hash-table)) | |
(setf (ed::css-keyword-hash-table) | |
(load-keyword-file (ed::css-keyword-file) t))) | |
(when (ed::css-keyword-hash-table) | |
(make-local-variable 'keyword-hash-table) | |
(setf keyword-hash-table (ed::css-keyword-hash-table)))) | |
(add-hook '*css+-mode-hook* 'css+-set-local-variable) | |
(defun css+2-mode () | |
(interactive) | |
(setf ed::*css-level* 2) | |
(css+-mode)) | |
(defun css+3-mode () | |
(interactive) | |
(setf ed::*css-level* 3) | |
(css+-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
おもっきり
css-mode
のシンボルを流用しまくってるが(・ε・)キニシナイ!!