Function: consult--mode-name
consult--mode-name is a byte-compiled function defined in consult.el.
Signature
(consult--mode-name MODE)
Documentation
Return name part of MODE.
Source Code
;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
;;;;; Command: consult-mode-command
(defun consult--mode-name (mode)
"Return name part of MODE."
(replace-regexp-in-string
"global-\\(.*\\)-mode" "\\1"
(replace-regexp-in-string
"\\(-global\\)?-mode\\'" ""
(if (eq mode 'c-mode)
"cc"
(symbol-name mode))
'fixedcase)
'fixedcase))