Function: conf-javaprop-mode

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

Signature

(conf-javaprop-mode)

Documentation

Conf Mode starter for Java properties files.

Comments start with # but are also recognized with // or between /* and */. For details see conf-mode. Example:

# Conf mode font-locks this right with M-x conf-javaprop-mode (conf-javaprop-mode) (Java properties)
// another kind of comment
/* yet another */

name:value name=value name value x.1 = x.2.y.1.z.1 = x.2.y.1.z.2.zz =

In addition to any hooks its parent mode might have run, this mode runs the hook conf-javaprop-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
;; Here are a few more or less widespread styles.  There are others, so
;; obscure, they are not covered.  E.g. RFC 2614 allows both Unix and Windows
;; comments.  Or the donkey has (* Pascal comments *) -- roll your own starter
;; if you need it.

;;;###autoload
(define-derived-mode conf-javaprop-mode conf-mode "Conf[JavaProp]"
  "Conf Mode starter for Java properties files.
Comments start with `#' but are also recognized with `//' or
between `/*' and `*/'.
For details see `conf-mode'.  Example:

# Conf mode font-locks this right with \\[conf-javaprop-mode] (Java properties)
// another kind of comment
/* yet another */

name:value
name=value
name value
x.1 =
x.2.y.1.z.1 =
x.2.y.1.z.2.zz ="
  (conf-mode-initialize "#" 'conf-javaprop-font-lock-keywords)
  (setq-local conf-assignment-column conf-javaprop-assignment-column)
  (setq-local conf-assignment-regexp ".+?\\([ \t]*[=: \t][ \t]*\\|$\\)")
  (setq-local comment-start-skip "\\(?:#+\\|/[/*]+\\)\\s *")
  (setq-local imenu-generic-expression
	      '(("Parameters" "^[ \t]*\\(.+?\\)[=: \t]" 1))))