やりたいこと flymake で YAML のシンタックスチェックがしたい。 対処 ~/bin などのパス(emacs の exec-path)の通してあるところに、emacs-yaml-syntax-check という名前で以下のファイルを配置します。実行権限を付与して下さい。require している yaml は Ruby の標準添付ライブラリです。 #!/usr/bin/env ruby require "yaml" begin YAML.load(ARGF) rescue Exception => error warn error.message #=> syntax error on line 3, col 2: ` name: pattern' end scratch バッファで (executable-find "emacs-yaml-syntax-check") と書き、)
![flymake で YAML のシンタックスチェック - わからん](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ffefa6d90c55716b7c4e4d0cc9423804da337e2/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fk%2Fkitokitoki%2F20120306%2F20120306014607.png)