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

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

Re: Saving window config using desktop globals


From: Tim Johnson
Subject: Re: Saving window config using desktop globals
Date: Sun, 13 Dec 2015 14:33:50 -0900
User-agent: Mutt/1.5.21 (2010-09-15)

* Emanuel Berg <embe8573@student.uu.se> [151213 14:30]:
> OK, now it works!
> 
>     - M-x no prefix
>     - M-x    prefix
>     - Elisp plain integer
> 
> Man, I like those chained and's and or's... Opens up
> a whole new world.
> 
> (defvar *default-window-configuration-register* ?0)
> 
> (defun save-window-configuration (&optional register)
>   (interactive "P")
>   (window-configuration-to-register
>    (or (and (listp register) (car register))
>        register
>        *default-window-configuration-register* )))
> 
> (defun restore-window-configuration (&optional register)
>   (interactive "P")
>   (jump-to-register
>    (or (and (listp register) (car register))
>        register
>        *default-window-configuration-register* )))
  :) I love your code and your enthusiasm for sharing it, but as you
  might see from my other reply, I really boogered my question and I
  should have said simply:

  "How do I save a register in a desktop file?"
   and if I can't
  "What are options for saving a window layout?"
  So Sorry.
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



reply via email to

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