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

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

Re: Window state/configuration (and markers)


From: Emanuel Berg
Subject: Re: Window state/configuration (and markers)
Date: Wed, 23 Jul 2014 23:51:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Carlos Pita <carlosjosepita@gmail.com> writes:

> I would like to save/restore window
> state/configuration ...

What problem or undesirable situation do you
experience?

I seldom find it sensible to store and load window
configurations. But if you habitually setup very
ambitious configs with debugging, documentation (man
pages, browser, etc.), source, some e-mail or post
discussion the source, the file directory, and
everything else you can think of... yeah.

This is the material I have on this. It works but I
don't know about the mark or everything else you
mention.

(setq default-win-config-reg ?0)

(defun save-win-config (&optional reg)
   (interactive "P")
   (window-configuration-to-register
    (if reg reg default-win-config-reg) ))

(defun fetch-win-config (&optional reg)
  (interactive "P")
  (jump-to-register
   (if reg reg default-win-config-reg)) )

-- 
underground experts united


reply via email to

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