help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to persist registers across sessions?


From: Michael Heerdegen
Subject: Re: How to persist registers across sessions?
Date: Mon, 27 Jun 2022 14:01:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Is there a way to save the window configuration to use across Emacs
> sessions?

I dunno - could be there is none directly.  If not you might need to
pick pieces together from desktop.el and frameset.el, e.g. as a start
try

#+begin_src emacs-lisp
(progn
  (defvar saved)
  (let ((saved (frameset-save (list (selected-frame))
                              :app desktop--app-id
                              :name (concat user-login-name "@" (system-name))
                              :predicate #'desktop--check-dont-save)))
    (desktop-outvar 'saved)))
#+end_src

Evaluating this will insert a readable expression that describes the
layout of the selected frame into the current buffer.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]