From 984c14265c9cafe25167206f6acf44e00e4b9fa7 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 21 Sep 2016 20:28:24 -0700 Subject: [PATCH] [Emacs] Add global cycling support to term-hydra --- dotfiles/emacs.d/README.org | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 59cc349f..52a637a9 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -3077,18 +3077,26 @@ emr (emacs refactor) provides support for refactoring in many programming langua (emit-prefix-selector imalison:term term-projectile-forward term-projectile-create-new) + (defhydra imalison:term-hydra-default-directory () "term - default-directory" - ("n" term-projectile-default-directory-forward) - ("p" term-projectile-default-directory-backward) - ("c" term-projectile-create-new-default-directory)) + ("f" term-projectile-default-directory-forward) + ("b" term-projectile-default-directory-backward) + ("c" term-projectile-default-directory-create-new)) + + (defhydra imalison:term-hydra-projectile () + "term - projectile" + ("f" term-projectile-forward) + ("b" term-projectile-backward) + ("c" term-projectile-create-new)) (defhydra imalison:term-hydra () "term" - ("n" term-projectile-forward) - ("p" term-projectile-backward) - ("c" term-projectile-create-new) - ("d" imalison:term-hydra-default-directory/body :exit t)))) + ("f" term-projectile-global-forward) + ("b" term-projectile-global-backward) + ("c" term-projectile-global-create-new) + ("d" imalison:term-hydra-default-directory/body :exit t) + ("p" imalison:term-hydra-projectile/body :exit t)))) #+END_SRC *** crux crux-reopen-as-root-mode makes it so that any file owned by root will automatically be opened as the root user.