Variable: isearch-fold-quotes-mode-hook
isearch-fold-quotes-mode-hook is a customizable variable defined in
isearch.el.gz.
Value
nil
Documentation
Hook run after entering or leaving isearch-fold-quotes-mode(var)/isearch-fold-quotes-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(define-minor-mode isearch-fold-quotes-mode
"Minor mode to aid searching for \\=` characters in help modes."
:lighter ""
(if isearch-fold-quotes-mode
(setq-local isearch-fold-quotes-mode--state
(buffer-local-set-state
search-default-mode
(lambda (string &optional _lax)
(thread-last
(regexp-quote string)
(replace-regexp-in-string "`" "[`‘]")
(replace-regexp-in-string "'" "['’]")
(replace-regexp-in-string "\"" "[\"“”]")))))
(buffer-local-restore-state isearch-fold-quotes-mode--state)))