Variable: srecode-template-mode-hook

srecode-template-mode-hook is a variable defined in srt-mode.el.gz.

Value

nil

Documentation

Hook run after entering SRecode mode.

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/srecode/srt-mode.el.gz
;;;###autoload
(define-derived-mode srecode-template-mode fundamental-mode "SRecode"
  ;; FIXME: Shouldn't it derive from prog-mode?
  "Major-mode for writing SRecode macros."
  (setq-local comment-start ";;")
  (setq-local comment-end "")
  (setq-local parse-sexp-ignore-comments t)
  (setq-local comment-start-skip
              "\\(\\(^\\|[^\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")
  (setq-local font-lock-defaults
              '(srecode-font-lock-keywords
                nil  ;; perform string/comment fontification
                nil  ;; keywords are case sensitive.
                ;; This puts _ & - as a word constituent,
                ;; simplifying our keywords significantly
                ((?_ . "w") (?- . "w")))))