Variable: kill-ring-deindent-mode
kill-ring-deindent-mode is a customizable variable defined in
indent-aux.el.gz.
Value
nil
Documentation
Non-nil if Kill-Ring-Deindent mode is enabled.
See the kill-ring-deindent-mode(var)/kill-ring-deindent-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function kill-ring-deindent-mode(var)/kill-ring-deindent-mode(fun).
Probably introduced at or before Emacs version 30.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/indent-aux.el.gz
;;;###autoload
(define-minor-mode kill-ring-deindent-mode
"Toggle removal of indentation from text saved to the kill ring.
When this minor mode is enabled, text saved into the kill ring is
indented towards the left by the column number at the start of
that text."
:global 't
:group 'killing
(if kill-ring-deindent-mode
(add-function :override filter-buffer-substring-function
#'kill-ring-deindent-buffer-substring-function
'(:depth 100))
(remove-function filter-buffer-substring-function
#'kill-ring-deindent-buffer-substring-function)))