Skip to content

Commit

Permalink
Allow emacs to exit when gocode binary cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfaulkner committed Mar 18, 2014
1 parent c1a514b commit 40a4356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs/go-autocomplete.el
Expand Up @@ -45,7 +45,8 @@
(sock (format (concat temporary-file-directory "gocode-daemon.%s") user)))
(unless (file-exists-p sock)
(add-hook 'kill-emacs-hook #'(lambda ()
(call-process "gocode" nil nil nil "close")))))))
(ignore-errors
(call-process "gocode" nil nil nil "close"))))))))

;(defvar go-reserved-keywords
; '("break" "case" "chan" "const" "continue" "default" "defer" "else"
Expand Down

0 comments on commit 40a4356

Please sign in to comment.