all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Window state/configuration (and markers)
Date: Wed, 23 Jul 2014 23:51:05 +0200	[thread overview]
Message-ID: <8761in3fsm.fsf@debian.uxu> (raw)
In-Reply-To: mailman.5928.1406147802.1147.help-gnu-emacs@gnu.org

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	other threads:[~2014-07-23 21:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5928.1406147802.1147.help-gnu-emacs@gnu.org>
2014-07-23 21:51 ` Emanuel Berg [this message]
2014-07-23 16:38 Window state/configuration (and markers) Carlos Pita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761in3fsm.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.