<commit_before>(require 'ensime)

(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)

(provide 'init-scala)<commit_msg>emacs: scala: ensime config<commit_after>(require 'ensime)

;; add the following to ~/.sbt/1.0/plugins/plugins.sbt:
;;
;; addSbtPlugin("org.ensime" % "sbt-ensime" % "2.5.1")

(setq ensime-eldoc-hints 'all)
(setq ensime-typecheck-when-idle nil)

(defun mjhoy/setup-scala-mode ()
  "My setup for scala-mode."
  (ensime-mode))

(add-hook 'scala-mode-hook 'mjhoy/setup-scala-mode)

(provide 'init-scala)
{'fraction_non_alphanumeric': 0.18304431599229287, 'fraction_numerical': 0.009633911368015413, 'mean_word_length': 4.777777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7557914', 'n_tokens_mistral': 227, 'n_tokens_neox': 215, 'n_words': 37}