[Emacs] Add global cycling support to term-hydra

This commit is contained in:
Ivan Malison 2016-09-21 20:28:24 -07:00
parent 9a0a2589e8
commit 984c14265c
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -3077,18 +3077,26 @@ emr (emacs refactor) provides support for refactoring in many programming langua
(emit-prefix-selector imalison:term (emit-prefix-selector imalison:term
term-projectile-forward term-projectile-forward
term-projectile-create-new) term-projectile-create-new)
(defhydra imalison:term-hydra-default-directory () (defhydra imalison:term-hydra-default-directory ()
"term - default-directory" "term - default-directory"
("n" term-projectile-default-directory-forward) ("f" term-projectile-default-directory-forward)
("p" term-projectile-default-directory-backward) ("b" term-projectile-default-directory-backward)
("c" term-projectile-create-new-default-directory)) ("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 () (defhydra imalison:term-hydra ()
"term" "term"
("n" term-projectile-forward) ("f" term-projectile-global-forward)
("p" term-projectile-backward) ("b" term-projectile-global-backward)
("c" term-projectile-create-new) ("c" term-projectile-global-create-new)
("d" imalison:term-hydra-default-directory/body :exit t)))) ("d" imalison:term-hydra-default-directory/body :exit t)
("p" imalison:term-hydra-projectile/body :exit t))))
#+END_SRC #+END_SRC
*** crux *** crux
crux-reopen-as-root-mode makes it so that any file owned by root will automatically be opened as the root user. crux-reopen-as-root-mode makes it so that any file owned by root will automatically be opened as the root user.