Permalink
Browse files

Merge branch 'electric-indent-mode'

  • Loading branch information...
2 parents 8f086ae + 496abe1 commit a419a38775a1aaecc93f585622feb245971ace23 @rejeep committed Apr 8, 2013
Showing with 21 additions and 1 deletion.
  1. +2 −1 drag-stuff.el
  2. +19 −0 features/conflicting-modes.feature
View
3 drag-stuff.el
@@ -96,7 +96,8 @@
(defun drag-stuff-down (arg)
"Drag stuff ARG lines down."
(interactive "p")
- (let ((auto-fill-function nil))
+ (let ((auto-fill-function nil)
+ (electric-indent-mode nil))
(if mark-active
(drag-stuff-lines-down arg)
(drag-stuff-line-down arg))))
View
19 features/conflicting-modes.feature
@@ -22,3 +22,22 @@ Feature: Drag Stuff
;; ...
))
"""
+
+ Scenario: Electric indent mode
+ Given I insert:
+ """
+ class Foo
+ end
+ def bar
+ end
+ """
+ And I turn on drag-stuff
+ And I turn on electric-indent-mode
+ And I drag line "2" down
+ Then I should see:
+ """
+ class Foo
+ def bar
+ end
+ end
+ """

0 comments on commit a419a38

Please sign in to comment.