Some minor changes in yank-pop
This commit is contained in:
parent
79ac17db8c
commit
dae1e4d1bc
1 changed files with 6 additions and 6 deletions
|
@ -350,9 +350,9 @@ indent yanked text (with prefix arg don't indent)."
|
||||||
(yank-advised-indent-function (region-beginning) (region-end)))))
|
(yank-advised-indent-function (region-beginning) (region-end)))))
|
||||||
|
|
||||||
(defadvice yank-pop (after yank-pop-indent activate)
|
(defadvice yank-pop (after yank-pop-indent activate)
|
||||||
"If current mode is one of 'yank-indent-modes,
|
"If current mode is one of `yank-indent-modes',
|
||||||
indent yanked text (with prefix arg don't indent)."
|
indent yanked text (with prefix arg don't indent)."
|
||||||
(if (and (not (ad-get-arg 0))
|
(when (and (not (ad-get-arg 0))
|
||||||
(not (member major-mode yank-indent-blacklisted-modes))
|
(not (member major-mode yank-indent-blacklisted-modes))
|
||||||
(or (derived-mode-p 'prog-mode)
|
(or (derived-mode-p 'prog-mode)
|
||||||
(member major-mode yank-indent-modes)))
|
(member major-mode yank-indent-modes)))
|
||||||
|
|
Loading…
Reference in a new issue