mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix eshell+persp-mode integration
Would cause a non-descript wrong-number-of-arguments error when trying to switch workspaces.
This commit is contained in:
@ -75,19 +75,6 @@
|
||||
(eshell-send-input nil t))))
|
||||
|
||||
|
||||
;;
|
||||
;; Persp-mode integration
|
||||
;;
|
||||
|
||||
(defun +eshell|switch-workspace ()
|
||||
(setq +eshell-buffers
|
||||
(or (persp-parameter 'eshell-buffers)
|
||||
(make-ring 25))))
|
||||
|
||||
(defun +eshell|save-workspace ()
|
||||
(set-persp-parameter 'eshell-buffers +eshell-buffers))
|
||||
|
||||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
@ -298,3 +285,14 @@ delete."
|
||||
if (eq mode 'eshell-mode)
|
||||
return (select-window win))))))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +eshell|switch-workspace (type)
|
||||
(when (eq type 'frame)
|
||||
(setq +eshell-buffers
|
||||
(or (persp-parameter 'eshell-buffers)
|
||||
(make-ring 25)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +eshell|save-workspace (_workspace target)
|
||||
(when (framep target)
|
||||
(set-persp-parameter 'eshell-buffers +eshell-buffers)))
|
||||
|
Reference in New Issue
Block a user