branch: elpa/haskell-tng-mode
commit 63b1c8db74ece8a526abcd5768de64586647cdd9
Author: Tseen She <ts33n....@gmail.com>
Commit: Tseen She <ts33n....@gmail.com>

    flip the default newline / comment behaviour
---
 haskell-tng-smie.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index 90d12df..198760b 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -34,7 +34,7 @@
 (defun haskell-tng-newline (&optional alt)
   "A `newline-and-indent' with a better user experience for `haskell-tng-mode'.
 
-Comments are continued unless called with a prefix."
+Comments are continued if called with a prefix."
   (interactive "P")
   ;; TODO a dynamically bound variable might improve the quality of
   ;;      'empty-line-token predictions. Parens are special-cased.
@@ -53,8 +53,8 @@ Comments are continued unless called with a prefix."
     ;;
     ;; TODO in-comment indent should observe | haddock markers
     (if alt
-        (call-interactively #'newline-and-indent)
-      (call-interactively #'comment-indent-new-line))
+        (call-interactively #'comment-indent-new-line)
+      (call-interactively #'newline-and-indent))
     (when rem
       (save-excursion
         (insert rem)))))

Reply via email to