2009-01-01から1年間の記事一覧

flymakeでscalaの文法をリアルタイムにチェックする

前回のはおまけで、やりたかったのはむしろこっち。flymakeがわからない人はこちらを参照。 (eval-when-compile (require 'cl)) (require 'flymake) (defvar flymake-scala-tmpdir "/tmp") (defvar flymake-scala-global-classpath ".") (push '(".+\\.scala…

anythingを使ってflymakeのエラー行を表示する

探してみても見あたら無かったので慣れないelispで書いてみたでござるの巻 (eval-when-compile (require 'cl)) (require 'flymake) (setq anything-c-source-flymake '((name . "Flymake") (init . (lambda () (setq anything-flymake-err-list (loop for er…

ポーカーの勝敗判定

haskell入門中■参考 http://www6.airnet.ne.jp/spade/poker/rule/yaku.html import Data.List import Data.Maybe import Random data Suit = Spade | Heart | Diamond | Club deriving (Eq, Enum, Show) type Rank = Int data Card = Card Rank Suit derivin…

xmlのfolding(折り畳み)をする

たまには更新しろよってことでemacs小ネタ。一万行のxmlファイルの修正依頼に涙がぶち切れそうになったので emacsの折り畳みについてさらっと調べてみたら、hs-minor-modeなるものが標準で入ってた。ということでsgmlモードでxmlの折り畳みをする設定。 つい…