aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2023-07-22 11:15:22 -0700
committerRaúl Benencia <id@rbenencia.name>2023-07-22 11:15:22 -0700
commit0c181ed81d107e6179193ef19a6ea02588508ece (patch)
treec138c9042fd7f9b2a6838f24583747bc688e94cc /.emacs.d
parent5860445da55ac3abc3935c6ffd5e9bb4539225c9 (diff)
emacs: fixups on session and desktopemacs-cfg
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el10
-rw-r--r--.emacs.d/rul-init.d/tabbar.el3
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)
nihil fit ex nihilo