Variable: outline-minor-mode-highlight

outline-minor-mode-highlight is a customizable variable defined in outline.el.gz.

Value

nil

Documentation

Whether to highlight headings in outline-minor-mode(var)/outline-minor-mode(fun) using font-lock keywords.

This option controles whether outline-minor-mode(var)/outline-minor-mode(fun) will use its font-lock keywords to highlight headings, which could potentially conflict with font-lock faces defined by the major mode. Thus, a non-nil value will work well only when there's no such conflict. If the value is t, use outline faces only if there are no major mode's font-lock faces on headings. When override, completely overwrite major mode's font-lock faces with outline faces. When append, try to append outline font-lock faces to those of major mode.

This variable was added, or its default value changed, in Emacs 28.1.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/outline.el.gz
;;;###autoload(put 'outline-minor-mode-cycle 'safe-local-variable 'booleanp)

(defcustom outline-minor-mode-highlight nil
  "Whether to highlight headings in `outline-minor-mode' using font-lock keywords.
This option controles whether `outline-minor-mode' will use its font-lock
keywords to highlight headings, which could potentially conflict with
font-lock faces defined by the major mode.  Thus, a non-nil value will
work well only when there's no such conflict.
If the value is t, use outline faces only if there are no major mode's
font-lock faces on headings.  When `override', completely overwrite major
mode's font-lock faces with outline faces.  When `append', try to append
outline font-lock faces to those of major mode."
  :type '(choice (const :tag "Do not use outline font-lock highlighting" nil)
                 (const :tag "Overwrite major mode font-lock faces" override)
                 (const :tag "Append outline font-lock faces to major mode's"
                        append)
                 (const :tag "Highlight with outline font-lock faces only if major mode doesn't" t))
  :version "28.1")