[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 3ff278e 227/385: ability to not continue
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 3ff278e 227/385: ability to not continue comments |
Date: |
Tue, 5 Oct 2021 23:59:36 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 3ff278ed63e929a379802e12274ff93ce4d5268e
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
ability to not continue comments
---
haskell-tng-smie.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index 898f015..84f13c9 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -31,9 +31,11 @@
(require 'haskell-tng-font-lock)
(require 'haskell-tng-lexer)
-(defun haskell-tng-newline ()
- "A `newline-and-indent' with a better user experience for
`haskell-tng-mode'."
- (interactive)
+(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."
+ (interactive "P")
;; TODO a dynamically bound variable might improve the quality of
;; 'empty-line-token predictions. Parens are special-cased.
(when (<= (- (point-max) 1) (point))
@@ -50,7 +52,9 @@
;; TODO don't continue line comments if there is code before them
;;
;; TODO in-comment indent should observe | haddock markers
- (call-interactively #'comment-indent-new-line)
+ (if alt
+ (call-interactively #'newline-and-indent)
+ (call-interactively #'comment-indent-new-line))
(when rem
(save-excursion
(insert rem)))))
- [nongnu] elpa/haskell-tng-mode 3b37524 360/385: bugfix for qualified imports when the cache was bad, (continued)
- [nongnu] elpa/haskell-tng-mode 3b37524 360/385: bugfix for qualified imports when the cache was bad, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fe2b164 372/385: fix the build, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 63225d5 374/385: use .ghc.path to find hsinspect, build tool agnostic, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3d1122b 116/385: notes on regexps, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c3793b2 176/385: canonical until macro, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b7cb5b9 214/385: starting to create imenu, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5306ae2 217/385: fix type faces with constraints, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5f81d6b 219/385: bump python version, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8f4d7fc 225/385: advice around smartparens workaround, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4cbf702 205/385: move third party deps to -contrib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ff278e 227/385: ability to not continue comments,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode dbcef71 235/385: workaround the env file situation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5892c04 232/385: small things, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 44dc467 248/385: notes on motivation, contributing and collaboration, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6f2b5ee 266/385: font lock CPP, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fdbd0a2 239/385: updates for hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b2e2c3a 293/385: stop stack from being an asshole, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ee07f6d 172/385: type indentation tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 59354b6 198/385: support hanging type alignment, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a788ab2 209/385: more efficient layout caching, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f7e8040 213/385: = ends a type sig, ELPA Syncer, 2021/10/06