summaryrefslogtreecommitdiff
path: root/support/emacs
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2005-10-17 16:03:34 +0000
committerIulian Dragos <jaguarul@gmail.com>2005-10-17 16:03:34 +0000
commite96181b4d818a1a6ed5cf54da12c98348bd31f3e (patch)
tree0e79c28803e099a1d62cbb4e8c1ce2e8ce81b2ac /support/emacs
parentc24210160e8eb8195d19f101b5692933fb79ff2f (diff)
downloadscala-e96181b4d818a1a6ed5cf54da12c98348bd31f3e.tar.gz
scala-e96181b4d818a1a6ed5cf54da12c98348bd31f3e.tar.bz2
scala-e96181b4d818a1a6ed5cf54da12c98348bd31f3e.zip
Added hooks to enable user-defined code be run ...
Added hooks to enable user-defined code be run at init time.
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)