npm i -g textlint
してある- 該当 .org ファイルのあるディレクトリ内に .textlintrc がない
という条件のときに↓のようになった。
エラーメッセージは textlint からくるもの。
== No rules found, textlint hasn’t done anything == Possible reasons: * Your textlint config file has no rules. * You have no config file and you aren’t passing rules via command line. * Your textlint config has a syntax error. => How to set up rules? https://github.com/textlint/textlint/blob/master/docs/configuring.md
どうやら flycheck が内部で textlint を検知して実行するが .textlintrc がないのでエラーが出る、という状態らしい。
Doom Emacs 的には ~/.doom.d/init.el
の :checkers セクション内で syntax が有効化されており、それによって flycheck がデフォルトでロードされるようになっている。
このディレクトリ内のファイルに対しては textlint をかけたくない(かける必要がない)ので、適当な .textlintrc を置くのは避けたい(textlint --init で空の .textlintrc を作っても、ルールを一つ以上設定しないと同じエラーが出続けるため)。
flycheck の設定でどうにかすべきだが、やり方がわからないので、Doom Emacs の個人設定用ファイル ~/.doom.d/init.el
で :checkers の syntax をコメントアウトして ~/.emacs.d/bin/doom sync
し、flycheck ごと無効化した。Emacs をコーディングに使っていないので取れる乱暴な手ではある。
(doom! :input :checkers ;syntax ; tasing you for every semicolon you forget )