[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
apache mode
From: |
Nic Ferrier |
Subject: |
apache mode |
Date: |
15 Aug 2004 21:39:12 +0100 |
I've made a new apache mode with the following extra function:
(defun apache-close-decl ()
"Try and close an open decl."
(interactive)
(let ((case-fold-search 't)
config-element)
(save-excursion
(re-search-backward
"<\\(VirtualHost\\|Location\\|LocationMatch\\|Directory\\|DirectoryMatch\\|Files\\|FilesMatch\\)
"
nil 't)
(setq config-element (match-string 1)))
(if config-element
(insert "</" config-element ">"))))
This is a broken form of sgml-close-tag. But then Apache config files
are a broken form of XML /8->
Download the whole thing at:
http://www.tapsellferrier.co.uk/downloads/apache-mode.el
--
Nic Ferrier
http://www.tapsellferrier.co.uk
- apache mode,
Nic Ferrier <=