* Re: Preserving window layout (follow up)
2003-06-07 21:16 Preserving window layout Johan Bockgård
@ 2003-06-11 18:53 ` Matthew Calhoun
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Calhoun @ 2003-06-11 18:53 UTC (permalink / raw)
Thanks for all the suggestions. I found a really helpful function that
I'm surprised nobody mentioned, though: set-window-dedicated-p prevents
Emacs from messing with a particular window. I wound up writing a small
function that sets up my windows as described, calls this function for
the shell window, and then calls the window-configuration-to-register
function that Johan mentioned. Seems to work pretty well.
Thanks again,
Matt
El Saturday, 7 June, 2003, a las 02:16 PM, Johan Bockgård escribió:
> Matthew Calhoun <calhounm@mac.com> writes:
>
>> Sort of a poor man's IDE. The problem is, when I do something like
>> command-apropos it wreaks havoc on my nice little environment - the
>> shell buffer grows to take up half of the frame, and the *Apropos*
>> buffer has taken the place of *shell*.
>
> Another approach
>
> ,----[ C-h k C-x r w ]
> | C-x r w runs the command window-configuration-to-register
> | which is an interactive compiled Lisp function in `register'.
> | (window-configuration-to-register REGISTER &optional ARG)
> |
> | Store the window configuration of the selected frame in register
> REGISTER.
> | Use C-x r j to restore the configuration.
> | Argument is a character, naming the register.
> `----
>
> (info "(emacs)RegConfig")
>
> You might want to bind those to some nice keys.
>
> Also see
>
> (info "(emacs)Windows")
> (info "(emacs)Window Convenience")
>
> --
> The day Microsoft makes something that doesn't suck is probably the
> day they start making vacuum cleaners. -- Ernst Jan Plugge
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Preserving window layout (follow up)
[not found] <mailman.7740.1055367556.21513.help-gnu-emacs@gnu.org>
@ 2003-06-16 21:23 ` Robert Hundt
0 siblings, 0 replies; 3+ messages in thread
From: Robert Hundt @ 2003-06-16 21:23 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1874 bytes --]
Hey Matthew,
please send me this function ... ;-)
-- Robert
"Matthew Calhoun" <calhounm@mac.com> wrote in message
news:mailman.7740.1055367556.21513.help-gnu-emacs@gnu.org...
Thanks for all the suggestions. I found a really helpful function that
I'm surprised nobody mentioned, though: set-window-dedicated-p prevents
Emacs from messing with a particular window. I wound up writing a small
function that sets up my windows as described, calls this function for
the shell window, and then calls the window-configuration-to-register
function that Johan mentioned. Seems to work pretty well.
Thanks again,
Matt
El Saturday, 7 June, 2003, a las 02:16 PM, Johan Bockgård escribió:
> Matthew Calhoun <calhounm@mac.com> writes:
>
>> Sort of a poor man's IDE. The problem is, when I do something like
>> command-apropos it wreaks havoc on my nice little environment - the
>> shell buffer grows to take up half of the frame, and the *Apropos*
>> buffer has taken the place of *shell*.
>
> Another approach
>
> ,----[ C-h k C-x r w ]
> | C-x r w runs the command window-configuration-to-register
> | which is an interactive compiled Lisp function in `register'.
> | (window-configuration-to-register REGISTER &optional ARG)
> |
> | Store the window configuration of the selected frame in register
> REGISTER.
> | Use C-x r j to restore the configuration.
> | Argument is a character, naming the register.
> `----
>
> (info "(emacs)RegConfig")
>
> You might want to bind those to some nice keys.
>
> Also see
>
> (info "(emacs)Windows")
> (info "(emacs)Window Convenience")
>
> --
> The day Microsoft makes something that doesn't suck is probably the
> day they start making vacuum cleaners. -- Ernst Jan Plugge
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Preserving window layout (follow up)
[not found] <E19S33S-00078x-Py@monty-python.gnu.org>
@ 2003-06-17 16:29 ` Matthew Calhoun
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Calhoun @ 2003-06-17 16:29 UTC (permalink / raw)
Cc: help-gnu-emacs
Sure. Here it is:
(defun lock-window ()
"Prevent Emacs from messing with the current window."
(interactive)
(set-window-dedicated-p (frame-selected-window) t)
(message "Locked window."))
(defun ide ()
"Set up a simple IDE-like environment."
(interactive)
(split-window-vertically -8)
(other-window 1)
(shell)
(lock-window)
(other-window 1)
(split-window-horizontally)
; Make sure we can get back here if our setup somehow gets messed up
(use 'C-x r j i')
(window-configuration-to-register ?i)
(message "IDE initialized. Use 'C-x r j i' to return to this window
configuration."))
El Monday, 16 June, 2003, a las 04:06 PM,
help-gnu-emacs-request@gnu.org escribió:
> Hey Matthew,
>
> please send me this function ... ;-)
>
> -- Robert
>
> "Matthew Calhoun" <calhounm@mac.com> wrote in message
> news:mailman.7740.1055367556.21513.help-gnu-emacs@gnu.org...
> Thanks for all the suggestions. I found a really helpful function that
> I'm surprised nobody mentioned, though: set-window-dedicated-p prevents
> Emacs from messing with a particular window. I wound up writing a small
> function that sets up my windows as described, calls this function for
> the shell window, and then calls the window-configuration-to-register
> function that Johan mentioned. Seems to work pretty well.
>
> Thanks again,
> Matt
>
> El Saturday, 7 June, 2003, a las 02:16 PM, Johan Bockgård escribió:
>
>> Matthew Calhoun <calhounm@mac.com> writes:
>>
>>> Sort of a poor man's IDE. The problem is, when I do something like
>>> command-apropos it wreaks havoc on my nice little environment - the
>>> shell buffer grows to take up half of the frame, and the *Apropos*
>>> buffer has taken the place of *shell*.
>>
>> Another approach
>>
>> ,----[ C-h k C-x r w ]
>> | C-x r w runs the command window-configuration-to-register
>> | which is an interactive compiled Lisp function in `register'.
>> | (window-configuration-to-register REGISTER &optional ARG)
>> |
>> | Store the window configuration of the selected frame in register
>> REGISTER.
>> | Use C-x r j to restore the configuration.
>> | Argument is a character, naming the register.
>> `----
>>
>> (info "(emacs)RegConfig")
>>
>> You might want to bind those to some nice keys.
>>
>> Also see
>>
>> (info "(emacs)Windows")
>> (info "(emacs)Window Convenience")
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-06-17 16:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E19S33S-00078x-Py@monty-python.gnu.org>
2003-06-17 16:29 ` Preserving window layout (follow up) Matthew Calhoun
[not found] <mailman.7740.1055367556.21513.help-gnu-emacs@gnu.org>
2003-06-16 21:23 ` Robert Hundt
2003-06-07 21:16 Preserving window layout Johan Bockgård
2003-06-11 18:53 ` Preserving window layout (follow up) Matthew Calhoun
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).