mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
When yank-indent-mode is enabled, yanked (pasted) text is indented based on the indent rules of the current major mode. It has a global-yank-indent-mode too which by default excludes a long list of known indentation sensitive modes with which this approach does not work very well. It is based on some random hacky snippets elisp I've been using for over a decade. Said snippets are themselves based on some random snippets I found online, and since morphed into the weird monster they had become.
18 lines
343 B
EmacsLisp
18 lines
343 B
EmacsLisp
;;; siren-yank-indent.el --- jimeh's Emacs Siren: yank-indent configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for yank-indent.
|
|
|
|
;;; Code:
|
|
|
|
(use-package yank-indent
|
|
:straight (:type built-in) ;; from vendor directory
|
|
:demand
|
|
|
|
:config
|
|
(global-yank-indent-mode t))
|
|
|
|
(provide 'siren-yank-indent)
|
|
;;; siren-yank-indent.el ends here
|