Use transient instead of hydra (#3)

* Use transient instead of hydra
* Use global map instead of my custom map
This commit is contained in:
Maciej 2023-03-16 20:47:35 +02:00 committed by GitHub
parent 835c3325ef
commit 8d81d91314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 173 additions and 311 deletions

View file

@ -25,31 +25,11 @@
:config
(setq lsp-haskell-process-path-hie "haskell-language-server-wrapper"))
(defhydra my-haskell/context-hydra (:color teal :hint nil)
"
^
^ LSP ^^Buffer
^
^ _m_: iMenu _r_: Reload
^ ^ ^ _f_: Format
^ ^ ^ _i_: Indent
^ ^ ^ _e_: Show Errors
^
"
("q" nil "cancel" :color blue)
("r" revert-buffer-no-confirm)
("i" indent-region)
("f" lsp-format-buffer)
("e" flycheck-list-errors)
("m" lsp-ui-imenu))
(defun activate-haskell-mode ()
"Run this in haskell-mode."
(set-indent 2)
(column-enforce-n 80)
(lsp)
(define-key haskell-mode-map (kbd "C-c l") 'my-haskell/context-hydra/body)
;; Company list override
(add-to-list (make-local-variable 'company-backends)