Variable: doc-view-imenu-title-format

doc-view-imenu-title-format is a customizable variable defined in doc-view.el.gz.

Value

"%t (%p)"

Documentation

Format spec for imenu's display of section titles from docview documents.

The special markers '%t' and '%p' are replaced by the section title and page number in this format string, which uses format-spec.

For instance, setting this variable to "%t" will produce items showing only titles and no page number.

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

Source Code

;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defcustom doc-view-imenu-title-format "%t (%p)"
  "Format spec for imenu's display of section titles from docview documents.

The special markers '%t' and '%p' are replaced by the section
title and page number in this format string, which uses
`format-spec'.

For instance, setting this variable to \"%t\" will produce items
showing only titles and no page number."
  :type 'string
  :version "29.1")