diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2005-10-17 16:03:34 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2005-10-17 16:03:34 +0000 |
commit | e96181b4d818a1a6ed5cf54da12c98348bd31f3e (patch) | |
tree | 0e79c28803e099a1d62cbb4e8c1ce2e8ce81b2ac /support | |
parent | c24210160e8eb8195d19f101b5692933fb79ff2f (diff) | |
download | scala-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')
-rw-r--r-- | support/emacs/scala-mode.el | 7 |
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) |