summaryrefslogtreecommitdiff
path: root/support/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'support/emacs')
-rw-r--r--support/emacs/scala-mode.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/emacs/scala-mode.el b/support/emacs/scala-mode.el
index 2721321cba..5540b5865d 100644
--- a/support/emacs/scala-mode.el
+++ b/support/emacs/scala-mode.el
@@ -610,6 +610,10 @@ When called repeatedly, indent each time one stop further on the right."
`((,scala-char-re (0 "\"" t nil))
(scala-search-special-identifier-forward (0 "w" nil nil))))
+; define scala-mode-hook
+(defvar scala-mode-hook nil
+ "Hook to run after installing scala mode")
+
;; Bug reporting
(defun scala-report-bug ()
@@ -760,4 +764,7 @@ When started, run `scala-mode-hook'.
(modify-syntax-entry ?\n "> b" scala-mode-syntax-table)
(modify-syntax-entry ?\r "> b" scala-mode-syntax-table)
+; run hooks
+(run-hooks 'scala-mode-hook)
+
(provide 'scala-mode)