Skip to content
Browse files

Add support for electric indent mode.

  • Loading branch information...
1 parent 8f086ae commit 496abe17be5a8d6f95506b98de7504b52950b4de @rejeep committed
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 496abe1

Please sign in to comment.
Something went wrong with that request. Please try again.