From fb46a7ef2c04f93f61e4e7be2384974b43ea5079 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 15 Jul 2016 13:40:27 -0700 Subject: [PATCH] Fix scala-mode install --- dotfiles/emacs.d/README.org | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 4821d028..5b17533b 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2470,17 +2470,20 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 #+END_SRC **** scala #+BEGIN_SRC emacs-lisp -(use-package scala-mode2 +(use-package scala-mode :mode (("\\.scala\\'" . scala-mode) ("\\.sc\\'" . scala-mode)) :config (progn - (when (use-package ensime - :pin melpa-stable - :bind (:map ensime-mode-map - ("M-," . ensime-pop-find-definition-stack)) - :commands ensime-mode) - (add-hook 'scala-mode-hook 'ensime-scala-mode-hook)) + (use-package ensime + :pin melpa-stable + :bind (:map ensime-mode-map + ("M-," . ensime-pop-find-definition-stack)) + :commands ensime-mode + :config + (progn + (setq ensime-startup-snapshot-notification nil))) + (add-hook 'scala-mode-hook 'ensime-scala-mode-hook) (setq scala-indent:align-parameters t))) #+END_SRC **** js