tweak ensime setup

This commit is contained in:
Ivan Malison 2015-10-25 15:42:24 -07:00
parent ceb640ad14
commit fae8c80144

View File

@ -1947,19 +1947,16 @@ window is active in the perspective."
;; ============================================================================= ;; =============================================================================
(use-package scala-mode2 (use-package scala-mode2
:config
(progn
(use-package ensime
:config
(progn
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
(defun guide-key/scala-mode-hook ()
(guide-key/add-local-guide-key-sequence "C-c C-v"))
(add-hook 'scala-mode-hook 'guide-key/scala-mode-hook)))
(setq scala-indent:align-parameters t))
:mode (("\\.scala\\'" . scala-mode) :mode (("\\.scala\\'" . scala-mode)
("\\.sc\\'" . scala-mode)) ("\\.sc\\'" . scala-mode))
:ensure t) :config
(progn
(when (use-package ensime
:commands ensime-mode
:bind (:map ensime-mode-map
("M-," . ensime-pop-find-definition-stack)))
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook))
(setq scala-indent:align-parameters t)))
;; ============================================================================= ;; =============================================================================
;; Java ;; Java