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:
parent
f540c6c40a
commit
1880fb8a7d
1 changed files with 11 additions and 13 deletions
|
@ -75,19 +75,6 @@
|
||||||
(eshell-send-input nil t))))
|
(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
|
;; Commands
|
||||||
;;
|
;;
|
||||||
|
@ -298,3 +285,14 @@ delete."
|
||||||
if (eq mode 'eshell-mode)
|
if (eq mode 'eshell-mode)
|
||||||
return (select-window win))))))))))
|
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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue