Skip to content

Commit

Permalink
indent after yank and yank-pop
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Wang committed Feb 3, 2011
1 parent d058afb commit 957bc9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto-indent-lite.el
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ You should also set `kill-whole-line' to do what you want.
(when (looking-at "[ \t]+")
(replace-match " ")))))
(indent-region (region-beginning) (region-end))
(indent-according-to-mode)
(if auto-indent-mode-untabify-on-yank-or-paste
(untabify (region-beginning) (region-end))))))

Expand All @@ -340,6 +341,7 @@ You should also set `kill-whole-line' to do what you want.
(when (looking-at "[ \t]+")
(replace-match " ")))))
(indent-region (region-beginning) (region-end))
(indent-according-to-mode)
(if auto-indent-mode-untabify-on-yank-or-paste
(untabify (region-beginning) (region-end))))))

Expand Down

0 comments on commit 957bc9f

Please sign in to comment.