From b08c2c745fd206becece48162ccc39e94d95d381 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 5 Jul 2024 02:57:29 -0400 Subject: [PATCH] module: remove :ui hydra This module has been deprecated for some time because it is too trivially small, and it's always been unclear how hydra fits into Doom's vision for its UI, but I intend to lean into either transient or Embark in the future. --- modules/ui/hydra/README.org | 62 ---------------------------- modules/ui/hydra/autoload/windows.el | 49 ---------------------- modules/ui/hydra/config.el | 15 ------- modules/ui/hydra/packages.el | 4 -- templates/init.example.el | 1 - 5 files changed, 131 deletions(-) delete mode 100644 modules/ui/hydra/README.org delete mode 100644 modules/ui/hydra/autoload/windows.el delete mode 100644 modules/ui/hydra/config.el delete mode 100644 modules/ui/hydra/packages.el diff --git a/modules/ui/hydra/README.org b/modules/ui/hydra/README.org deleted file mode 100644 index 688bf4f4b..000000000 --- a/modules/ui/hydra/README.org +++ /dev/null @@ -1,62 +0,0 @@ -#+title: :ui hydra -#+subtitle: Discount modality for mythological beast hunters -#+created: October 29, 2019 -#+since: 2.0.0 - -#+begin_quote -  *This module is deprecated.* The module is too trivially small, and it's - always been unclear how hydra fits into Doom's vision for its UI. It's been - decided that Doom will head toward Embark, transient, or hercules instead. -#+end_quote - -* Description :unfold: -This module adds hydra to Doom Emacs, as well as a few custom built hydras to -start with: - -- A hydra to control windows ~+hydra/window-nav/body~. -- A hydra to control text zoom level ~+hydra/text-zoom/body~. - -** Maintainers -/This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]] - -** Module flags -/This module has no flags./ - -** Packages -- [[doom-package:hydra]] - -** Hacks -/No hacks documented for this module./ - -** TODO Changelog -# This section will be machine generated. Don't edit it by hand. -/This module does not have a changelog yet./ - -* Installation -[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]] - -/This module has no external requirements./ - -* TODO Usage -#+begin_quote - 󱌣 This module has no usage documentation yet. [[doom-contrib-module:][Write some?]] -#+end_quote - -* TODO Configuration -#+begin_quote - 󱌣 /This module's configuration documentation is incomplete./ [[doom-contrib-module:][Complete it?]] -#+end_quote - -Configuring this module is only setting bindings to the provided hydra, or -creating your own ones! - -* Troubleshooting -/There are no known problems with this module./ [[doom-report:][Report one?]] - -* Frequently asked questions -/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]] - -* TODO Appendix -#+begin_quote - 󱌣 This module has no appendix yet. [[doom-contrib-module:][Write one?]] -#+end_quote diff --git a/modules/ui/hydra/autoload/windows.el b/modules/ui/hydra/autoload/windows.el deleted file mode 100644 index d39286d80..000000000 --- a/modules/ui/hydra/autoload/windows.el +++ /dev/null @@ -1,49 +0,0 @@ -;;; ui/hydra/autoload/windows.el -*- lexical-binding: t; -*- - -;;;###autoload (autoload '+hydra/text-zoom/body "ui/hydra/autoload/windows" nil t) -(defhydra +hydra/text-zoom (:hint nil :color red) - " - Text zoom: _j_:zoom in, _k_:zoom out, _0_:reset -" - ("j" doom/increase-font-size "in") - ("k" doom/decrease-font-size "out") - ("0" doom/reset-font-size "reset")) - -;;;###autoload (autoload '+hydra/window-nav/body "ui/hydra/autoload/windows" nil t) -(defhydra +hydra/window-nav (:hint nil) - " - Split: _v_ert _s_:horz - Delete: _c_lose _o_nly - Switch Window: _h_:left _j_:down _k_:up _l_:right _u_:undo _r_:redo - Buffers: _p_revious _n_ext _b_:select _f_ind-file - Resize: _H_:splitter left _J_:splitter down _K_:splitter up _L_:splitter right - Move: _a_:up _z_:down _i_menu -" - ("z" scroll-up-line) - ("a" scroll-down-line) - ("i" idomenu) - - ("h" windmove-left) - ("j" windmove-down) - ("k" windmove-up) - ("l" windmove-right) - ("u" winner-undo) - ("r" winner-redo) - - ("p" previous-buffer) - ("n" next-buffer) - ("b" switch-to-buffer) - ("f" find-file) - - ("s" split-window-below) - ("v" split-window-right) - - ("c" delete-window) - ("o" delete-other-windows) - - ("H" hydra-move-splitter-left) - ("J" hydra-move-splitter-down) - ("K" hydra-move-splitter-up) - ("L" hydra-move-splitter-right) - - ("q" nil)) diff --git a/modules/ui/hydra/config.el b/modules/ui/hydra/config.el deleted file mode 100644 index 225943a74..000000000 --- a/modules/ui/hydra/config.el +++ /dev/null @@ -1,15 +0,0 @@ -;;; ui/hydra/config.el -*- lexical-binding: t; -*- - -(use-package! hydra-examples - :commands (hydra-move-splitter-up - hydra-move-splitter-down - hydra-move-splitter-right - hydra-move-splitter-left)) - -;;;###package hydra -(setq lv-use-separator t) - -(defadvice! +hydra--inhibit-window-switch-hooks-a (fn) - :around #'lv-window - (let (doom-switch-window-hook) - (funcall fn))) diff --git a/modules/ui/hydra/packages.el b/modules/ui/hydra/packages.el deleted file mode 100644 index 2b6fa4cbf..000000000 --- a/modules/ui/hydra/packages.el +++ /dev/null @@ -1,4 +0,0 @@ -;; -*- no-byte-compile: t; -*- -;;; ui/hydra/packages.el - -(package! hydra :pin "317e1de33086637579a7aeb60f77ed0405bf359b") diff --git a/templates/init.example.el b/templates/init.example.el index e1b3dc6e6..80142384f 100644 --- a/templates/init.example.el +++ b/templates/init.example.el @@ -35,7 +35,6 @@ ;;doom-quit ; DOOM quit-message prompts when you quit Emacs ;;(emoji +unicode) ; 🙂 hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW - ;;hydra ;;indent-guides ; highlighted indent columns ;;ligatures ; ligatures and symbols to make your code pretty again ;;minimap ; show a map of the code on the side