From da48826141535baf0512758be4d92383887fcda1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 4 Jun 2020 13:00:52 -0700 Subject: emacs: drop hydra for prog mode I can't bother learning / remembering to use it. I'm removing it again from this configuration, and will drop it completely. There's no need to pull / maintain another dependency which will break if I don't use it. --- emacs.d/custom/fcuny-prog.el | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/emacs.d/custom/fcuny-prog.el b/emacs.d/custom/fcuny-prog.el index 64ba181..182e9e6 100644 --- a/emacs.d/custom/fcuny-prog.el +++ b/emacs.d/custom/fcuny-prog.el @@ -25,32 +25,6 @@ :ensure t :hook ((go-mode . lsp-deferred)) :commands (lsp lsp-deferred) - :pretty-hydra - ((:title "lsp" :color teal :quit-key "q") - ("Connection" - (("cc" lsp "start") - ("cr" lsp-restart-workspace "restart") - ("cd" lsp-describe-session "describe session") - ("cq" lsp-disconnect "disconnect")) - "Find & Goto" - (("fd" lsp-describe-thing-at-point "describe symbol") - ("fm" lsp-ui-imenu "imenu") - ("ft" lsp-find-type-definition "type definition")) - "Refactor" - (("rr" lsp-rename "rename") - ("ra" lsp-execute-code-action "code action") - ("rf" lsp-format-buffer "format")) - "Toggles" - (("tl" lsp-lens-mode "toggle lens" :toggle t :exit nil)))) - :mode-hydra - ((go-mode) - (:color teal :quit-key "q" :title "Language Server Commands") - ("LSP" - (("d" lsp-describe-thing-at-point "describe") - ("R" lsp-rename "rename") - ("A" lsp-execute-code-action "code action") - ("F" lsp-format-buffer "format") - ("l" lsp-mode-hydra/body "more...")))) :custom (lsp-session-file (expand-file-name "lsp-session-v1" fcuny/path-emacs-var)) (lsp-enable-snippet nil) @@ -60,14 +34,6 @@ :ensure t :hook (lsp-mode . lsp-ui-mode) :commands lsp-ui-mode - :pretty-hydra - (lsp-mode-hydra - ("Toggles" - (("td" lsp-ui-doc-mode "toggle hover doc" :toggle t :exit nil) - ("ts" lsp-ui-sideline-mode "toggle sideline" :toggle t :exit nil)) - "Find & Goto" - (("gr" lsp-ui-peek-find-references "references") - ("gd" lsp-ui-peek-find-definitions "definitions")))) :custom (lsp-ui-doc-enable nil) (lsp-ui-doc-include-signature t) @@ -114,13 +80,7 @@ (tab-width 4)) (use-package gotest - :ensure t - :mode-hydra - (go-mode nil - ("Tests" - (("tt" go-test-current-test "current test") - ("tf" go-test-current-file "current file") - ("tp" go-test-current-project "current project"))))) + :ensure t) (use-package lisp-mode :bind -- cgit 1.4.1