chore(core): Make Emacs play nice when run in a terminal

Ever since I started using persp-mode, launching Emacs in a terminal has
made it restore the same set of open files as in my main GUI instance of
Emacs. This hasn't been a big deal, but still somewhat annoying.

I've finally gotten around to disabling persp-mode's auto save/load
feature when running Emacs in a terminal.

And for good measure, I also set the theme to be doom-vibrant in the
terminal too. My old tomorrow-night-paradise is way out of date, and
nowhere near as good as doom-vibrant.
This commit is contained in:
2020-02-01 22:02:54 +00:00
parent 6888df47c6
commit af2894c6fc
2 changed files with 8 additions and 3 deletions

View File

@@ -52,6 +52,12 @@
(persp-nil-name "nil")
:init
;; Do not auto save/load in terminal. My main instance of Emacs runs in GUI,
;; terminal based instances are for smaller random things.
(when (not window-system)
(setq persp-auto-resume-time -1
persp-auto-save-opt 0))
(defun siren-persp-mode-ibuffer (arg)
(interactive "P")
(with-persp-buffer-list () (ibuffer arg)))