[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 6ade588 195/385: key bindings in compilat
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 6ade588 195/385: key bindings in compilation mode |
Date: |
Tue, 5 Oct 2021 23:59:30 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 6ade588f5fb6d3aca853c1c191eba2336289f6cb
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
key bindings in compilation mode
---
haskell-tng-compile.el | 6 +++++-
haskell-tng-font-lock.el | 1 +
haskell-tng-mode.el | 5 +----
haskell-tng-smie.el | 1 +
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/haskell-tng-compile.el b/haskell-tng-compile.el
index a7fb555..a644704 100644
--- a/haskell-tng-compile.el
+++ b/haskell-tng-compile.el
@@ -116,7 +116,11 @@ will cause the subsequent call to prompt."
(define-compilation-mode haskell-tng-compilation-mode "haskell-tng-compilation"
(add-hook 'compilation-filter-hook
- 'haskell-tng--compile-ansi-color nil t))
+ 'haskell-tng--compile-ansi-color nil t)
+ (cl-flet ((bind (key def)
+ (define-key haskell-tng-compilation-mode-map (kbd key) def)))
+ (bind "C-c c" 'haskell-tng-compile)
+ (bind "C-c e" 'next-error)))
(provide 'haskell-tng-compile)
;;; haskell-tng-compile.el ends here
diff --git a/haskell-tng-font-lock.el b/haskell-tng-font-lock.el
index cbe8343..17c3d6b 100644
--- a/haskell-tng-font-lock.el
+++ b/haskell-tng-font-lock.el
@@ -284,6 +284,7 @@ succeeds and may further restrict the FIND search limit."
haskell-tng--util-paren-close
haskell-tng--util-indent-close-previous
haskell-tng--util-do-bind)
+;; TODO commas end a type signature in a record of functions
(haskell-tng--font-lock-multiline topdecl
(rx line-start (| "data" "newtype" "class"
"instance") word-end)
diff --git a/haskell-tng-mode.el b/haskell-tng-mode.el
index fe6c027..954350b 100644
--- a/haskell-tng-mode.el
+++ b/haskell-tng-mode.el
@@ -86,15 +86,12 @@ Load `prettify-symbols-mode' in `haskell-tng-mode-hook'."
(haskell-tng--smie-setup)
- (cl-flet ((bind (key def) (define-key haskell-tng-mode-map (kbd key) def))
- (bind-compile (key def) (define-key haskell-tng-mode-map (kbd key)
def)))
+ (cl-flet ((bind (key def) (define-key haskell-tng-mode-map (kbd key) def)))
(bind "<return>" 'haskell-tng-newline)
;; core compilation loop, supports C-u and C-- prefixes
(bind "C-c c" 'haskell-tng-compile)
(bind "C-c e" 'next-error)
- (bind-compile "C-c c" 'haskell-tng-compile)
- (bind-compile "C-c e" 'next-error)
;; external tools
(bind "C-c C" 'haskell-tng-stack2cabal)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index b3429f8..dfd5d6a 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -46,6 +46,7 @@
(call-interactively #'comment-indent-new-line)
(when rem
(save-excursion
+ ;; TODO prune trailing whitespace
(insert rem)))))
;; TODO autodetection of indent options
- [nongnu] elpa/haskell-tng-mode 3ddafce 181/385: disambiguate -> during lexing, (continued)
- [nongnu] elpa/haskell-tng-mode 3ddafce 181/385: disambiguate -> during lexing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6b4dca0 189/385: note other build tools, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cc657a8 197/385: support type alignment options, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a7098e8 194/385: stylish haskell outputs failures, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 21fe2a0 221/385: fix broken test assertions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 907255e 026/385: some namespacing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e7eaa38 077/385: some ideas for cabal, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ddd0706 108/385: suggest next line indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7a8f714 139/385: indent back to the same level of `do', ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ac55d33 134/385: interactive SMIE debugging, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6ade588 195/385: key bindings in compilation mode,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 144cabf 202/385: fix test assertions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 04ebec6 204/385: third party integrations, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aa9bbb7 216/385: add (broken) test coverage for consyms, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5f423b9 100/385: some alts in the indentation test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 50b53d3 114/385: tng compilation tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 36ece6d 117/385: low hanging fruit, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 489e4c9 124/385: document explicit export fontification bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 91a1d08 136/385: creating small scenarios for indentation specs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ec39a64 133/385: improvements to indentation alts and compilation info, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f67557b 142/385: fix a layout corner case, ELPA Syncer, 2021/10/06