diff options
| author | bard <[email protected]> | 2024-02-08 17:59:03 -0500 |
|---|---|---|
| committer | bard <[email protected]> | 2024-02-08 17:59:03 -0500 |
| commit | 5782d195e21e06960cad12f0677ed3c7f6ec45a7 (patch) | |
| tree | 8274a9f984a4fa0ff5eff0c549c64ba81ab4bbdb /bard-elisp/bard-terminal.el | |
| parent | 8513a9816b56d1827152743666cebe149992699a (diff) | |
open terminal in dired
Diffstat (limited to 'bard-elisp/bard-terminal.el')
| -rw-r--r-- | bard-elisp/bard-terminal.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bard-elisp/bard-terminal.el b/bard-elisp/bard-terminal.el index 4e7771c..d00640c 100644 --- a/bard-elisp/bard-terminal.el +++ b/bard-elisp/bard-terminal.el @@ -6,4 +6,12 @@ (global-set-key (kbd "C-c t") 'bard/open-terminal-in-current-directory) +(defun bard/open-terminal-emulator () + "Open a terminal in the current working directory." + (interactive) + (let ((default-directory default-directory)) + (start-process "st terminal" nil "st"))) + +(define-key dired-mode-map (kbd "C-c C-t") 'bard/open-terminal-emulator) + (provide 'bard-terminal.el) |
