mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
Moving to Doom Emacs!
This commit is contained in:
17
.emacs.d/modules/tools/tmux/autoload/evil.el
Normal file
17
.emacs.d/modules/tools/tmux/autoload/evil.el
Normal file
@@ -0,0 +1,17 @@
|
||||
;;; tools/tmux/autoload/evil.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! :editor evil)
|
||||
|
||||
;;;###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)))
|
||||
|
||||
;;;###autoload (autoload '+tmux:cd-here "tools/tmux/autoload/evil" nil t)
|
||||
(evil-define-command +tmux:cd-here (bang)
|
||||
(interactive "<!>")
|
||||
(if bang
|
||||
(+tmux/cd-to-here)
|
||||
(+tmux/cd-to-project)))
|
||||
|
||||
Reference in New Issue
Block a user