Fix per-workspace eshell buffers

This commit is contained in:
Henrik Lissner 2018-07-11 00:04:24 +02:00
parent a1b4616236
commit e2442e7d80
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 18 additions and 0 deletions

View file

@ -75,6 +75,19 @@
(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
;;