Tuareg modeの設定
現時点での設定。
(load "tuareg-site-file")
(setq tuareg-use-smie t
tuareg-interactive-program inferior-caml-program
tuareg-browser 'browse-url-firefox
tuareg-library-path
(if-windows "C:/Cygwin/usr/local/ocaml-4.00.0/lib/ocaml/"
"/usr/local/lib/ocaml/"))
(defun customize-tuareg-face ()
(set-face-attribute 'tuareg-font-lock-governing-face nil
:foreground (face-attribute 'font-lock-keyword-face :foreground)
:weight 'normal)
(set-face-attribute 'tuareg-font-lock-operator-face nil
:foreground "#999999"))
(defun set-tuareg-compile-command ()
(set (make-local-variable 'compile-command) "omake"))
(when window-system
(add-hook 'tuareg-mode-hook 'customize-tuareg-face))
(add-hook 'tuareg-mode-hook 'set-tuareg-compile-command)
(add-hook 'tuareg-mode-hook 'viper-mode)
ちなみに、if-windows
は
(defmacro if-windows (then &optional else)
`(if (eq window-system 'w32)
,then ,else))
こういうマクロ。
0 件のコメント:
コメントを投稿