From 0c181ed81d107e6179193ef19a6ea02588508ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sat, 22 Jul 2023 11:15:22 -0700 Subject: emacs: fixups on session and desktop --- .emacs.d/init.el | 10 ++++++++-- .emacs.d/rul-init.d/tabbar.el | 3 --- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 5d0996e..76d33ed 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -67,9 +67,8 @@ ;; Initialize environment ;; ------ - (setenv "TMPDIR" (concat (getenv "HOME") "/tmp")) -(server-start) +(add-hook 'after-init-hook #'server-start) ;; ------ ;; Helper for compilation. @@ -133,6 +132,13 @@ ;; Remember and restore cursor information (save-place-mode 1) +;; Desktop + +;; Save the desktop session +(setq desktop-path `(,user-emacs-directory)) +(setq desktop-base-file-name "desktop") +(desktop-save-mode 1) + ;; Set this to t if you don't understand what it means (setq vc-follow-symlinks nil) diff --git a/.emacs.d/rul-init.d/tabbar.el b/.emacs.d/rul-init.d/tabbar.el index a492e85..3025828 100644 --- a/.emacs.d/rul-init.d/tabbar.el +++ b/.emacs.d/rul-init.d/tabbar.el @@ -20,6 +20,3 @@ ;; Turn on tab bar mode after startup (tab-bar-mode 1) - -;; Save the desktop session -(desktop-save-mode 1) -- cgit v1.2.3