mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Autoload defhydra, remove unnecessary requires
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
;;; feature/hydra/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! hydra
|
||||
:commands (+hydra-zoom/body +hydra-window/body)
|
||||
:commands (+hydra-zoom/body +hydra-window/body defhydra)
|
||||
:config
|
||||
(defhydra +hydra-zoom (:hint t :color red)
|
||||
"zoom"
|
||||
@ -47,8 +47,9 @@
|
||||
("q" nil)))
|
||||
|
||||
|
||||
(when (featurep! :completion ivy)
|
||||
(def-package! ivy-hydra
|
||||
(def-package! ivy-hydra
|
||||
:when (featurep! :completion ivy)
|
||||
:after hydra
|
||||
:config
|
||||
(define-key ivy-mode-map (kbd "C-o")
|
||||
(defhydra coo-ivy (:hint nil :color pink)
|
||||
@ -91,4 +92,4 @@
|
||||
("t" (setq truncate-lines (not truncate-lines)))
|
||||
("C" ivy-toggle-case-fold)
|
||||
|
||||
("o" ivy-occur :exit t)))))
|
||||
("o" ivy-occur :exit t))))
|
||||
|
@ -35,7 +35,6 @@
|
||||
|
||||
|
||||
(when (featurep! :feature hydra)
|
||||
(require 'hydra)
|
||||
(defhydra +hydra-git-gutter (:body-pre (git-gutter-mode 1)
|
||||
:hint nil)
|
||||
"
|
||||
|
Reference in New Issue
Block a user