all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Keeping a small window smartly up-to-date
@ 2010-08-02 13:00 Andrea Crotti
  2010-08-02 17:20 ` Andrea Crotti
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Crotti @ 2010-08-02 13:00 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to keep track of my TODO list with org-mode in every
project.

I've read all the docs about windows but I still have some doubts, I
write it here because I think it could be useful...

My idea is that after the frame is created:
(by the way is this   (add-hook 'after-make-frame-functions 'full) for
exmaple correct to set a function after emacs boot?)

--8<---------------cut here---------------start------------->8---
  (setq agenda-window (split-window-vertically -10))
  ;; now open the right buffer in it
  ;; set it as a dedicated window
  ;; set the size fixed
--8<---------------cut here---------------end--------------->8---

I create a small window, dedicate it to the org-mode agenda and set the
size fixed.

Then every time I switch buffer I check the active buffer, and run the
appropriate update on the dedicated window.

Could that work?
Does it make sense?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Keeping a small window smartly up-to-date
  2010-08-02 13:00 Keeping a small window smartly up-to-date Andrea Crotti
@ 2010-08-02 17:20 ` Andrea Crotti
  2010-08-02 19:40   ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Crotti @ 2010-08-02 17:20 UTC (permalink / raw)
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> I would like to keep track of my TODO list with org-mode in every
> project.
>
> I've read all the docs about windows but I still have some doubts, I
> write it here because I think it could be useful...
>
> My idea is that after the frame is created:
> (by the way is this   (add-hook 'after-make-frame-functions 'full) for
> exmaple correct to set a function after emacs boot?)
>
>   (setq agenda-window (split-window-vertically -10))
>   ;; now open the right buffer in it
>   ;; set it as a dedicated window
>   ;; set the size fixed
>
> I create a small window, dedicate it to the org-mode agenda and set the
> size fixed.
>
> Then every time I switch buffer I check the active buffer, and run the
> appropriate update on the dedicated window.
>
> Could that work?
> Does it make sense?

Mm well still trying, now I use
--8<---------------cut here---------------start------------->8---
(setq agenda-window (split-window-vertically -10))
;; move to it
(set-variable window-fixed-size t)
(set-window-dedicated-p (selected-window))
--8<---------------cut here---------------end--------------->8---

and apparently is fine, but some other things (like gnus or the org
agenda itself) still are able to remove that window!

How do I really make it fixed there then?
Thanks




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Keeping a small window smartly up-to-date
  2010-08-02 17:20 ` Andrea Crotti
@ 2010-08-02 19:40   ` Tassilo Horn
  0 siblings, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2010-08-02 19:40 UTC (permalink / raw)
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

Hi Andrea,

> and apparently is fine, but some other things (like gnus or the org
> agenda itself) still are able to remove that window!
>
> How do I really make it fixed there then?

I think there's no easy way to do that right now.  The Emacs Code
Browser (ECB) for example also creates some 3- or 4-pane layout for
creating something many users expect from a IDE, that is some window
with a project tree-view, one window for the actual source file, and
some status/compilation window.  But AFAIK, it does so by advicing most
if not all functions that modify window configurations...

You may want to look at the sr-speedbar.el package, which also provides
one single, dedicated window with additional, context-specific
information.

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-02 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02 13:00 Keeping a small window smartly up-to-date Andrea Crotti
2010-08-02 17:20 ` Andrea Crotti
2010-08-02 19:40   ` Tassilo Horn

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.