Rewrite doctor; move warn! blocks out in doctor.el files

This commit is contained in:
Henrik Lissner 2018-03-12 13:16:16 -04:00
parent 5c36519dab
commit 74c8b1d113
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
16 changed files with 193 additions and 147 deletions

12
modules/lang/go/doctor.el Normal file
View file

@ -0,0 +1,12 @@
;;; lang/go/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "guru")
(warn! "Couldn't find guru. Refactoring commands (go-guru-*) won't work"))
(unless (executable-find "gore")
(warn! "Couldn't find gore. REPL will not work"))
(when (and (featurep! :completion company)
(require 'company-go nil t))
(unless (executable-find command-go-gocode-command)
(warn! "Couldn't find gocode. Code completion won't work")))