From 077babaf269d4af433e4e4cb196a3e152e1a78c5 Mon Sep 17 00:00:00 2001 From: luxick Date: Tue, 8 Oct 2019 08:37:14 +0200 Subject: [PATCH] Add desktop-mode to persist buffers when killing emacs. --- .gitignore | 2 ++ setup-emacs.org | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 2e6e4bb..0396219 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ transient .cache server setup-emacs.el +*.desktop +*.lock diff --git a/setup-emacs.org b/setup-emacs.org index ebb4f49..9749d32 100644 --- a/setup-emacs.org +++ b/setup-emacs.org @@ -10,6 +10,13 @@ This is my configuration for the emacs editor. (fringe-mode -1) #+END_SRC +* Desktop Mode + Using desktop mode emacs will save the state of all buffers, their cursor positions, window arrangements and other things when exiting. When starting these states are restored. + #+BEGIN_SRC emacs-lisp + (desktop-save-mode 1) + #+END_SRC + For more information take a look at the [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html][Emacs Manual]] + * Set up package repositories ** Require package support State that we will need package support and define a macro for adding package repos to the archives