From e96181b4d818a1a6ed5cf54da12c98348bd31f3e Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Mon, 17 Oct 2005 16:03:34 +0000 Subject: Added hooks to enable user-defined code be run ... Added hooks to enable user-defined code be run at init time. --- support/emacs/scala-mode.el | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3