spacemacs如何还原关闭之前的窗口?

就是把spacemacs关闭了,在打开的时候,能不能还原原来的窗口模式?

这个应该通过layout保存

spacemacs是不是有这个召唤功能的

不是很懂你的问题,如果是设置窗口模式的话

   ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil)
   ;; (Emacs 24.4+ only)
   dotspacemacs-fullscreen-at-startup nil
   ;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
   ;; Use to disable fullscreen animations in OSX. (default nil)
   dotspacemacs-fullscreen-use-non-native nil
   ;; If non-nil the frame is maximized when Emacs starts up.
   ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
   ;; (default nil) (Emacs 24.4+ only)

or

;; set initl screen size
(setq initial-frame-alist
      '(
        (width . 86) ; character
        (height . 45) ; lines
        ))

就是我开了几个窗口,然后把spacemacs关闭了,在打开spacemacs时,有什么方法可以快速的还原关闭前的窗状态

采用spacemacs保存之前的layout吧,我是用的山人的一套东西,保存你的各个project为layout。save用SPC o l s,每次启动emacs用Spc o l l。我基本上是保证我的每个layout不会有太多的buffer,这样启动比较快,想要浏览用ranger或dired,实在想把buffer加进去就在save一下。你可以手动使用spacemacs自带的,SPC l s, SPC l L,不是太方便。

(defun ztlevi/load-my-layout ()
  (interactive)
  (persp-load-state-from-file (concat persp-save-dir "ztlevi")))

(defun ztlevi/save-my-layout ()
  (interactive)
  (persp-save-state-to-file (concat persp-save-dir "ztlevi")))

keybindings

(spacemacs/set-leader-keys "oll" 'ztlevi/load-my-layout)
(spacemacs/set-leader-keys "ols" 'ztlevi/save-my-layout)

'(desktop-save-mode 1) 不了事了? 难道我理解不对?

可以,多谢多谢