auto-indent code pasted in clojure and scala buffers

This commit is contained in:
Bozhidar Batsov 2012-12-08 11:15:19 +02:00
parent bfba8f79e1
commit 6db74a90a3

View file

@ -249,7 +249,8 @@
(require 'midnight) (require 'midnight)
;; automatically indenting yanked text if in programming-modes ;; automatically indenting yanked text if in programming-modes
(defvar yank-indent-modes '(python-mode LaTeX-mode TeX-mode) (defvar yank-indent-modes
'(clojure-mode scala-mode python-mode LaTeX-mode TeX-mode)
"Modes in which to indent regions that are yanked (or yank-popped). Only "Modes in which to indent regions that are yanked (or yank-popped). Only
modes that don't derive from `prog-mode' should be listed here.") modes that don't derive from `prog-mode' should be listed here.")