spacemacs/layers/+lang/javascript/funcs.el
syl20bnr fdf74897a3 javascript: remove variable javascript-disable-tern-missing-warning
Just log the warning in the message buffer.
2016-04-07 23:13:25 -04:00

18 lines
497 B
EmacsLisp

;;; funcs.el --- Javascript Layer functions File for Spacemacs
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Muneeb Shaikh <muneeb@reversehack.in>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defun javascript//tern-detect ()
"Detect tern binary and warn if not found."
(let ((found (executable-find "tern")))
(unless found
(spacemacs-buffer/warning "tern binary not found!"))
found))