mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user