;; breval.el -- A major mode for breval ;; ;; Copyright (C) 2004 Jorgen Schaefer ;; URL: http://www.forcix.cx/software/breval.html ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License ;; as published by the Free Software Foundation; either version 2 ;; of the License, or (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, write to the Free Software ;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ;; 02111-1307, USA. (require 'tempo) (require 'html-helper-mode) (defcustom html-helper-new-breval-buffer-template "" "The string to insert on a newly created breval buffer." :type 'string) (tempo-define-template "breval-skeleton" html-helper-new-breval-buffer-template nil "Insert a skeleton for a breval document") (defun breval-html-helper-mode () "Major mode for editing breval documents." (interactive) (base-html-helper-mode "STXT") (html-helper-add-buffer (current-buffer) "HTML") (setq mode-name "HTML/Breval helper") (setq html-helper-mode-local-JSP-not-ASP html-helper-mode-global-JSP-not-ASP) (setq major-mode 'html-helper-mode) (when (and html-helper-build-new-buffer (zerop (buffer-size))) (tempo-template-breval-skeleton))) (provide 'breval)