LoginSignup
0
0

More than 3 years have passed since last update.

spacemacsでウィンドウサイズを復元できない時

Last updated at Posted at 2019-11-01

Windows10でspacemacsを使っていると、毎回起動する度に初期のウィンドウサイズに戻ってしまう。前回閉じる時のウィンドウサイズを保持してほしい。

設定ファイル .spacemacsには dotspacemacs-auto-resume-layouts nilがあるけど、これを有効にしてもダメ。(nilをtに変えることで有効化する)
dotspacemacs-auto-resume-layoutsは終了時に開いていたバッファを記憶するものだったようだ…😇

そして交わされている議論。 https://github.com/syl20bnr/spacemacs/issues/5095

Howto get a persistent spacemacs window position and size? #5095

そこに颯爽と現れる救世主。
https://github.com/syl20bnr/spacemacs/issues/5095#issuecomment-184900782

曰く、リンク先ソースコードの defun save-framegeometry ()関数と defun load-framegeometry ()関数を .spacemacsに追加し、さらにそれらを読み込むための処理を .spacemacsdotspacemacs/user-init関数内に置けとのこと。

loadとsaveの関数は .spacemacsの数あるdefnと同じレベルに並べた。最高。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0