LoginSignup
7
7

More than 5 years have passed since last update.

go-modeでerrをハイライトしておくと捗る

Last updated at Posted at 2015-01-20

以下を参考にした
http://yuroyoro.hatenablog.com/entry/2014/08/12/144157

highlight-regexpを使って以下のような感じで。
errは文字列でマッチするとerrorsとかも対象になってしまうので、単語でマッチさせましょう。

(add-hook 'go-mode-hook (lambda ()
              (highlight-regexp "\\<err\\>" 'hi-red-b)))

なかなか良い。

test_go.png

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7