doomemacs/modules/tools/tmux/autoload/evil.el

17 lines
518 B
EmacsLisp
Raw Normal View History

;;; tools/tmux/autoload/evil.el
2017-02-20 07:55:00 +08:00
;;;###autoload (autoload '+tmux:run "tools/tmux/autoload/evil" nil t)
(evil-define-command +tmux:run (bang &optional command)
(interactive "<!><fsh>")
(if (evil-visual-state-p)
(+tmux/send-region evil-visual-beginning evil-visual-end bang)
(+tmux/run command bang)))
2017-02-20 07:55:00 +08:00
;;;###autoload (autoload '+tmux:cd-here "tools/tmux/autoload/evil" nil t)
2017-02-20 07:55:00 +08:00
(evil-define-command +tmux:cd-here (bang)
(interactive "<!>")
(if bang
(+tmux/cd-to-here)
(+tmux/cd-to-project)))