Function: apache-conf-generic-mode

apache-conf-generic-mode is an interactive and byte-compiled function defined in generic-x.el.gz.

Signature

(apache-conf-generic-mode)

Documentation

Generic mode for Apache or HTTPD configuration files.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/generic-x.el.gz
(define-generic-mode apache-conf-generic-mode
  '(?#)
  nil
  '(("^\\s-*\\(<.*>\\)"      1 font-lock-constant-face)
    ("^\\s-*\\(\\sw+\\)\\s-" 1 font-lock-variable-name-face))
  '("srm\\.conf\\'" "httpd\\.conf\\'" "access\\.conf\\'")
  (list
   (lambda ()
     (setq imenu-generic-expression
           '((nil "^\\([-A-Za-z0-9_]+\\)" 1)
             ("*Directories*" "^\\s-*<Directory\\s-*\\([^>]+\\)>" 1)
             ("*Locations*"   "^\\s-*<Location\\s-*\\([^>]+\\)>" 1)))))
  "Generic mode for Apache or HTTPD configuration files.")