Autoload defhydra, remove unnecessary requires

This commit is contained in:
Henrik Lissner 2017-07-18 22:15:33 +02:00
parent e6658b7d8e
commit 91ff3afcd6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 40 additions and 40 deletions

View file

@ -1,7 +1,7 @@
;;; feature/hydra/config.el -*- lexical-binding: t; -*- ;;; feature/hydra/config.el -*- lexical-binding: t; -*-
(def-package! hydra (def-package! hydra
:commands (+hydra-zoom/body +hydra-window/body) :commands (+hydra-zoom/body +hydra-window/body defhydra)
:config :config
(defhydra +hydra-zoom (:hint t :color red) (defhydra +hydra-zoom (:hint t :color red)
"zoom" "zoom"
@ -47,8 +47,9 @@
("q" nil))) ("q" nil)))
(when (featurep! :completion ivy) (def-package! ivy-hydra
(def-package! ivy-hydra :when (featurep! :completion ivy)
:after hydra
:config :config
(define-key ivy-mode-map (kbd "C-o") (define-key ivy-mode-map (kbd "C-o")
(defhydra coo-ivy (:hint nil :color pink) (defhydra coo-ivy (:hint nil :color pink)
@ -91,4 +92,4 @@
("t" (setq truncate-lines (not truncate-lines))) ("t" (setq truncate-lines (not truncate-lines)))
("C" ivy-toggle-case-fold) ("C" ivy-toggle-case-fold)
("o" ivy-occur :exit t))))) ("o" ivy-occur :exit t))))

View file

@ -35,7 +35,6 @@
(when (featurep! :feature hydra) (when (featurep! :feature hydra)
(require 'hydra)
(defhydra +hydra-git-gutter (:body-pre (git-gutter-mode 1) (defhydra +hydra-git-gutter (:body-pre (git-gutter-mode 1)
:hint nil) :hint nil)
" "