aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
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/init.el
parent5860445da55ac3abc3935c6ffd5e9bb4539225c9 (diff)
emacs: fixups on session and desktopemacs-cfg
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el10
1 files changed, 8 insertions, 2 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)
nihil fit ex nihilo