Add ENSIME jump handlers to the proper modes

Move scala handler to scala layer
This commit is contained in:
Joao Azevedo 2017-06-04 20:20:42 +01:00 committed by syl20bnr
parent d1b699fceb
commit d947556406
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@
(defun spacemacs//java-setup-ensime ()
"Setup ENSIME."
;; jump handler
(add-to-list 'spacemacs-jump-handlers 'ensime-edit-definition)
(add-to-list 'spacemacs-jump-handlers-java-mode 'ensime-edit-definition)
;; ensure the file exists before starting `ensime-mode'
(cond
((and (buffer-file-name) (file-exists-p (buffer-file-name)))

View File

@ -11,7 +11,8 @@
(defun spacemacs//scala-setup-ensime ()
"Setup ENSIME for Scala."
(spacemacs//java-setup-ensime))
(spacemacs//java-setup-ensime)
(add-to-list 'spacemacs-jump-handlers-scala-mode 'ensime-edit-definition))
(defun spacemacs//scala-disable-flycheck-scala ()
(push 'scala flycheck-disabled-checkers))