Skip to content

Commit

Permalink
Merge branch 'electric-indent-mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
rejeep committed Apr 8, 2013
2 parents 8f086ae + 496abe1 commit a419a38
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drag-stuff.el
Expand Up @@ -96,7 +96,8 @@
(defun drag-stuff-down (arg) (defun drag-stuff-down (arg)
"Drag stuff ARG lines down." "Drag stuff ARG lines down."
(interactive "p") (interactive "p")
(let ((auto-fill-function nil)) (let ((auto-fill-function nil)
(electric-indent-mode nil))
(if mark-active (if mark-active
(drag-stuff-lines-down arg) (drag-stuff-lines-down arg)
(drag-stuff-line-down arg)))) (drag-stuff-line-down arg))))
Expand Down
19 changes: 19 additions & 0 deletions features/conflicting-modes.feature
Expand Up @@ -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.