Add ENSIME jump handlers to the proper modes
Move scala handler to scala layer
This commit is contained in:
parent
d1b699fceb
commit
d947556406
2 changed files with 3 additions and 2 deletions
|
@ -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)))
|
||||
|
|
|
@ -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))
|
||||
|
|
Reference in a new issue