Pinned Loading
-
-
-
-
elisp *scratch* の永続化
elisp *scratch* の永続化 1(setq initial-scratch-message "") ; とりあえず initial message を消す
2(add-hook 'kill-emacs-hook 'scratch-save) ; Emacs終了時に *scratch* を保存
3(add-hook 'window-setup-hook 'scratch-resume); 起動時に.scratchを読み込み
4;; window-setup-hook が最後に呼ばれるっぽい
5;; @see info 38.1.1 Summary: Sequence of Actions at Startup
-
終了時のフレームサイズで起動する
終了時のフレームサイズで起動する 1(add-hook 'kill-emacs-hook 'frame-size-save); Emacs終了時
2(add-hook 'window-setup-hook 'frame-size-resume); Emacs起動時
3(defun frame-size-save ()
4(set-buffer
5(find-file-noselect (expand-file-name "~/.emacs.d/.framesize")))
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.