# HG changeset patch # User Pranshu Sharma # Date 1734008757 -36000 # Node ID 27f2627e9f2fd8ec81d48cfe3cabacade3f47f53 # Parent 4d355b59e2a3092507c84a18d276d0c553c21361 Changed to define-keymap from make-sparse-keymap This approach was way less verbose and repetive diff -r 4d355b59e2a3 -r 27f2627e9f2f haskell-ts-mode.el --- a/haskell-ts-mode.el Thu Dec 12 22:06:43 2024 +1000 +++ b/haskell-ts-mode.el Thu Dec 12 23:05:57 2024 +1000 @@ -337,11 +337,10 @@ (indent-region (treesit-node-start node) (treesit-node-end node)))) (defvar haskell-ts-mode-map - (let ((km (make-sparse-keymap))) - (define-key km (kbd "C-c C-c") 'haskell-ts-compile-region-and-go) - (define-key km (kbd "C-c C-r") 'haskell-ts-run-haskell) - (define-key km (kbd "C-M-q") 'haskell-ts-indent-defun) ; For those who don't have emacs 30 - km) + (define-keymap + "C-c C-c" 'haskell-ts-compile-region-and-go + "C-c C-r" 'haskell-ts-run-haskell + "C-M-q" 'haskell-ts-indent-defun) "Map for haskell-ts-mode.") ;;;###autoload