Function: conf-space-mode

conf-space-mode is an autoloaded, interactive and byte-compiled function defined in conf-mode.el.gz.

Signature

(conf-space-mode)

Documentation

Conf Mode starter for space separated conf files.

"Assignments" are with . Keywords before the parameters are
recognized according to the variable conf-space-keywords-alist. Alternatively, you can specify a value for the file local variable conf-space-keywords(var)/conf-space-keywords(fun). Use the function conf-space-keywords(var)/conf-space-keywords(fun) if you want to specify keywords in an interactive fashion instead.

For details see conf-mode. Example:

# Conf mode font-locks this right with M-x conf-space-mode (conf-space-mode) (space separated)

image/jpeg jpeg jpg jpe
image/png png
image/tiff tiff tif

# Or with keywords (from a recognized file name):
class desktop
# Standard multimedia devices
add /dev/audio desktop
add /dev/mixer desktop

In addition to any hooks its parent mode conf-unix-mode might have run, this mode runs the hook conf-space-mode-hook, as the final or penultimate step during initialization.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/conf-mode.el.gz
;;;###autoload
(define-derived-mode conf-space-mode conf-unix-mode "Conf[Space]"
  "Conf Mode starter for space separated conf files.
\"Assignments\" are with ` '.  Keywords before the parameters are
recognized according to the variable `conf-space-keywords-alist'.
Alternatively, you can specify a value for the file local variable
`conf-space-keywords'.
Use the function `conf-space-keywords' if you want to specify keywords
in an interactive fashion instead.

For details see `conf-mode'.  Example:

# Conf mode font-locks this right with \\[conf-space-mode] (space separated)

image/jpeg			jpeg jpg jpe
image/png			png
image/tiff			tiff tif

# Or with keywords (from a recognized file name):
class desktop
# Standard multimedia devices
add /dev/audio		desktop
add /dev/mixer		desktop"
  (conf-mode-initialize "#" 'conf-space-font-lock-keywords)
  (setq-local conf-assignment-sign nil)
  (cond (buffer-file-name
	 ;; We set conf-space-keywords directly, but a value which is
	 ;; in the local variables list or interactively specified
	 ;; (see the function conf-space-keywords) takes precedence.
         (setq-local conf-space-keywords
		     (assoc-default buffer-file-name conf-space-keywords-alist
                                    #'string-match))))
  (conf-space-mode-internal)
  ;; In case the local variables list specifies conf-space-keywords,
  ;; recompute other things from that afterward.
  (add-hook 'hack-local-variables-hook #'conf-space-mode-internal nil t))