mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add tools/term & multi-term (WIP)
This commit is contained in:
16
modules/tools/term/autoload.el
Normal file
16
modules/tools/term/autoload.el
Normal file
@ -0,0 +1,16 @@
|
||||
;;; tools/term/autoload.el
|
||||
|
||||
;;;###autoload
|
||||
(defun +term ()
|
||||
(interactive)
|
||||
(call-interactively 'multi-term))
|
||||
|
||||
;;;###autoload
|
||||
(defun +term/popup ()
|
||||
(interactive)
|
||||
(require 'multi-term)
|
||||
(let* ((buffer (multi-term-get-buffer current-prefix-arg))
|
||||
(window (doom-popup-buffer buffer :popup t :align t :size 25 :select t :autokill t :noesc t)))
|
||||
(select-window window)
|
||||
(setq multi-term-buffer-list (nconc multi-term-buffer-list (list buffer)))
|
||||
(multi-term-internal)))
|
Reference in New Issue
Block a user