diff options
author | bd <bdunahu@colostate.edu> | 2024-05-18 01:42:03 -0600 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-05-18 01:42:03 -0600 |
commit | 8c4d353a989d44d7c95758ef3b5e21342783913a (patch) | |
tree | 480072f8ca45932c4cb64abaeb8e19f91ee7cdf1 /.config/emacs/modules/bd--tabs.el | |
parent | 7104dd0563171b8f6797dd5d803023c4d4cdbacf (diff) |
Improve dwm/emacs integration bindings
Diffstat (limited to '.config/emacs/modules/bd--tabs.el')
-rw-r--r-- | .config/emacs/modules/bd--tabs.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/emacs/modules/bd--tabs.el b/.config/emacs/modules/bd--tabs.el index f85c226..e5e11f9 100644 --- a/.config/emacs/modules/bd--tabs.el +++ b/.config/emacs/modules/bd--tabs.el @@ -41,6 +41,16 @@ (keymap-global-set "C-x p v" 'magit-project-status) +(defun bd/contextual-shell () + "Opens the current project's shell, +or a default shell if no project is open." + (interactive) + (let ((project (project-current))) + (if project + (project-shell) + (shell)))) + + (setq tab-bar-tab-name-function #'bd/tab-bar-name-function) |