Variable: use-package-form-regexp-eval

use-package-form-regexp-eval is a customizable variable defined in use-package-core.el.gz.

Value

(concat "^\\s-*(\\(\\(?:requir\\|use-packag\\)e\\)\\s-+\\("
	(or (bound-and-true-p lisp-mode-symbol-regexp)
	    "\\(?:\\sw\\|\\s_\\|\\\\.\\)+")
	"\\)")

Documentation

Sexp providing regexp for finding use-package forms in user files.

This is used by use-package-jump-to-package-form and use-package-enable-imenu-support.

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

Source Code

;; Defined in /usr/src/emacs/lisp/use-package/use-package-core.el.gz
(defcustom use-package-form-regexp-eval
  `(concat ,(eval-when-compile
              (concat "^\\s-*("
                      (regexp-opt '("use-package" "require") t)
                      "\\s-+\\("))
           (or (bound-and-true-p lisp-mode-symbol-regexp)
               "\\(?:\\sw\\|\\s_\\|\\\\.\\)+") "\\)")
  "Sexp providing regexp for finding `use-package' forms in user files.
This is used by `use-package-jump-to-package-form' and
`use-package-enable-imenu-support'."
  :type 'sexp
  :group 'use-package
  :version "29.1")