aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbard <[email protected]>2024-02-08 17:59:03 -0500
committerbard <[email protected]>2024-02-08 17:59:03 -0500
commit5782d195e21e06960cad12f0677ed3c7f6ec45a7 (patch)
tree8274a9f984a4fa0ff5eff0c549c64ba81ab4bbdb
parent8513a9816b56d1827152743666cebe149992699a (diff)
open terminal in dired
-rw-r--r--bard-elisp/bard-terminal.el8
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)