[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode bfc3841 193/385: remove bind-key dependen
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode bfc3841 193/385: remove bind-key dependency |
Date: |
Tue, 5 Oct 2021 23:59:29 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit bfc384143da095ea20d2dda79439c5584d2865cc
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
remove bind-key dependency
---
haskell-tng-mode.el | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/haskell-tng-mode.el b/haskell-tng-mode.el
index 4999ecd..fe6c027 100644
--- a/haskell-tng-mode.el
+++ b/haskell-tng-mode.el
@@ -6,7 +6,7 @@
;; Homepage: https://gitlab.com/tseenshe/haskell-tng-mode
;; Keywords: languages
;; Package-Version: 0.0.1
-;; Package-Requires: ((bind-key "2.4") (dash "2.16.0") (emacs "24.3"))
+;; Package-Requires: ((dash "2.16.0") (emacs "24.3"))
;;; Commentary:
;;
@@ -14,7 +14,6 @@
;;
;;; Code:
-(require 'bind-key)
(require 'dabbrev)
(require 'haskell-tng-syntax)
@@ -28,11 +27,11 @@
(defcustom haskell-tng-prettify-symbols
'(("forall" . ?∀))
- "Integration with `prettify-symbols' giving the impression of UnicodeSyntax.
+ "Integration with `prettify-symbols' giving the impression of UnicodeSyntax.
Load `prettify-symbols-mode' in `haskell-tng-mode-hook'."
- :type 'listp
- :group 'haskell-tng)
+ :type 'listp
+ :group 'haskell-tng)
;; optional dependency on projectile for TAGS management
(defvar projectile-tags-command)
@@ -87,20 +86,20 @@ Load `prettify-symbols-mode' in `haskell-tng-mode-hook'."
(haskell-tng--smie-setup)
- (bind-key "<return>" 'haskell-tng-newline haskell-tng-mode-map)
+ (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)))
+ (bind "<return>" 'haskell-tng-newline)
- ;; core compilation loop, supports C-u and C-- prefixes
- (bind-key "C-c c" 'haskell-tng-compile haskell-tng-mode-map)
- (bind-key "C-c e" 'next-error haskell-tng-mode-map)
-
- ;; convenient for commands to work from the compile buffer too
- (bind-key "C-c c" 'haskell-tng-compile haskell-tng-compilation-mode-map)
- (bind-key "C-c e" 'next-error haskell-tng-compilation-mode-map)
-
- ;; external tools
- (bind-key "C-c C" 'haskell-tng-stack2cabal haskell-tng-mode-map)
- (bind-key "C-c C-r f" 'haskell-tng-stylish-haskell haskell-tng-mode-map)
+ ;; 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)
+ (bind "C-c C-r f" 'haskell-tng-stylish-haskell)
+ )
)
;;;###autoload
- [nongnu] elpa/haskell-tng-mode ef7f335 171/385: note stack compatibility, (continued)
- [nongnu] elpa/haskell-tng-mode ef7f335 171/385: note stack compatibility, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 86bcd98 175/385: constraint indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e1c0f0a 179/385: allow indentation option to be tested, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1cceb64 182/385: cleaner tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b1122e4 188/385: allow users to use unsupported build tools, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode bd4ff6f 192/385: standardise on naming convention:, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3b5ac7f 190/385: package-lint, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a227f7e 200/385: blank lines end a run of type definitions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e4ead98 201/385: thots on prettify-symbol, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 387aa18 203/385: more efficient layout algorithm, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode bfc3841 193/385: remove bind-key dependency,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 6acba95 206/385: better insertion indentation on toplevels, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9bfc6bf 215/385: really basic imenu, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f648cf9 212/385: fallback to current directory (e.g. for cabal scripts), ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5bdf688 211/385: better in-line indentation of parens, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1cdf901 120/385: better escape syntax detection, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c40c6e6 125/385: fix explicit export fontification bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 82312a2 126/385: working compilation matchers, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 794c80b 131/385: better indentation alts, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d43fd73 141/385: more efficient indentation 'insert test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a830fcb 135/385: reindention test, ELPA Syncer, 2021/10/06