タグ

ブックマーク / syohex.hatenablog.com (1)

  • cperl-modeでの引数の無名関数のインデント - Shohei Yoshida's Diary

    コールバックを引数で取るような関数で無名関数を使ったとき こんな感じにして欲しいところですが、 cperl-modeだとこんな感じか こんな感じに なってしまいます。どうやったら一番上になるんだって思って ソース見ていたらなんとかなりそうだったのでその手順を示します。 melpaから取得できる cperl-modeの場合 このためのフラグ cperl-indent-subs-speciallyが用意されているので それを設定するだけで対応できます。 (setq cperl-indent-subs-specially nil) ;; もしくは (custom-set-variables '(cperl-indent-subs-specially nil)) Emacs付属の cperl-modeの場合 Emacs付属の cperl-modeも一応開発が進んでいるようで、 melpaにはない修

    cperl-modeでの引数の無名関数のインデント - Shohei Yoshida's Diary
    kent013
    kent013 2012/10/11
    キモいのが一瞬で直った。すばらぴー。
  • 1