summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2020-03-15 19:18:14 -0700
committerFranck Cuny <franck.cuny@gmail.com>2020-03-15 19:18:14 -0700
commit808def04ffe61b2b0da20ebd80c18e9938a7eed4 (patch)
treeb083667bcea4630e154ed2bc4f6bfc44de219261 /emacs.d/custom
parentemacs: consolidate configuration for conf-mode (diff)
downloademacs.d-808def04ffe61b2b0da20ebd80c18e9938a7eed4.tar.gz
emacs: new module for hydra
There might be a bunch of stuff related to hydra that I will add, so
move the configuration to its own package to make it easier in the
future.
Diffstat (limited to 'emacs.d/custom')
-rw-r--r--emacs.d/custom/fcuny-hydra.el11
-rw-r--r--emacs.d/custom/fcuny-ui.el3
2 files changed, 11 insertions, 3 deletions
diff --git a/emacs.d/custom/fcuny-hydra.el b/emacs.d/custom/fcuny-hydra.el
new file mode 100644
index 0000000..87a3620
--- /dev/null
+++ b/emacs.d/custom/fcuny-hydra.el
@@ -0,0 +1,11 @@
+(use-package hydra
+  :ensure t)
+
+(use-package major-mode-hydra
+  :after (hydra)
+  :demand t
+  :ensure t
+  :bind
+  ("M-SPC" . major-mode-hydra))
+
+(provide 'fcuny-hydra)
diff --git a/emacs.d/custom/fcuny-ui.el b/emacs.d/custom/fcuny-ui.el
index 23c51b8..63476aa 100644
--- a/emacs.d/custom/fcuny-ui.el
+++ b/emacs.d/custom/fcuny-ui.el
@@ -48,7 +48,4 @@
   (setq uniquify-buffer-name-style 'forward)
   (setq uniquify-separator "/"))
 
-(use-package hydra
-  :ensure t)
-
 (provide 'fcuny-ui)