From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: launch a program in an arbitrary frame
Date: Sun, 19 Jul 2015 01:39:20 +0200 [thread overview]
Message-ID: <87h9p1t4rb.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: 87vbdhqdl8.fsf@nl106-137-147.student.uu.se
Emanuel Berg <embe8573@student.uu.se> writes:
> OK! This I once knew how to do. What you want is to
> push the window configuration to a register each
> time you open an article, and then have it restored
> with a global keystroke. Hang on, I'll find it...
Here is how you do it.
With this, save the window configuration with `C-x m',
and store it with `C-x l'. When you show an article
from the *Summary* buffer, it'll save automatically so
you just have to restore it when you are done reading
articles. Unless you load it, it doesn't save again.
(defvar *do-save-new* t)
(defun save-win-conf ()
(interactive)
(when *do-save-new*
(window-configuration-to-register ?0) ))
(defun load-win-conf ()
(interactive)
(setq *do-save-new* t)
(jump-to-register ?0) )
(global-set-key "\C-xm" 'save-win-conf)
(global-set-key "\C-xl" 'load-win-conf)
(defun gnus-summary-show-article-save-win-conf ()
(interactive)
(save-win-conf)
(setq *do-save-new* nil)
(call-interactively 'gnus-summary-show-article) )
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-07-18 23:39 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-18 3:21 launch a program in an arbitrary frame Hikaru Ichijyo
2015-07-18 4:12 ` Vaidheeswaran C
2015-07-18 8:29 ` Emanuel Berg
2015-07-18 4:18 ` Vaidheeswaran C
2015-07-18 5:22 ` Drew Adams
2015-07-18 8:14 ` Emanuel Berg
[not found] ` <mailman.7087.1437207364.904.help-gnu-emacs@gnu.org>
2015-07-18 15:53 ` Hikaru Ichijyo
2015-07-18 16:35 ` Eli Zaretskii
2015-07-18 17:06 ` Óscar Fuentes
[not found] ` <mailman.7100.1437237353.904.help-gnu-emacs@gnu.org>
2015-07-18 17:12 ` Hikaru Ichijyo
2015-07-18 19:26 ` Emanuel Berg
[not found] ` <mailman.7109.1437247711.904.help-gnu-emacs@gnu.org>
2015-07-18 22:09 ` Hikaru Ichijyo
2015-07-18 22:45 ` Drew Adams
[not found] ` <mailman.7117.1437259681.904.help-gnu-emacs@gnu.org>
2015-07-18 23:28 ` Hikaru Ichijyo
2015-07-18 23:47 ` Emanuel Berg
[not found] ` <mailman.7122.1437263415.904.help-gnu-emacs@gnu.org>
2015-07-19 0:03 ` Hikaru Ichijyo
2015-07-19 0:32 ` Drew Adams
2015-07-19 7:15 ` Emanuel Berg
2015-07-19 13:03 ` Drew Adams
[not found] ` <mailman.7140.1437290215.904.help-gnu-emacs@gnu.org>
2015-07-19 10:40 ` Pascal J. Bourguignon
[not found] ` <mailman.7101.1437239201.904.help-gnu-emacs@gnu.org>
2015-07-18 17:47 ` Hikaru Ichijyo
2015-07-18 19:18 ` Emanuel Berg
[not found] ` <mailman.7108.1437247198.904.help-gnu-emacs@gnu.org>
2015-07-18 22:01 ` Hikaru Ichijyo
2015-07-18 22:56 ` Emanuel Berg
2015-07-18 23:39 ` Emanuel Berg [this message]
[not found] ` <mailman.7120.1437262864.904.help-gnu-emacs@gnu.org>
2015-07-18 23:51 ` Hikaru Ichijyo
2015-07-18 23:58 ` Emanuel Berg
[not found] ` <mailman.7124.1437264614.904.help-gnu-emacs@gnu.org>
2015-07-19 0:55 ` Hikaru Ichijyo
[not found] ` <mailman.7118.1437260312.904.help-gnu-emacs@gnu.org>
2015-07-18 23:32 ` Hikaru Ichijyo
2015-07-18 23:42 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9p1t4rb.fsf@nl106-137-147.student.uu.se \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).