[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: On the 43folders list
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: On the 43folders list |
Date: |
Fri, 18 Feb 2005 23:55:43 +0900 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Chris Lowis <address@hidden> writes:
> " Emily Price Feb 17, 3:16 pm
> I've just started using planner-mode for my GTD setup recently now
> that it supports using multiple projects for each item. I discovered a
Oooooooh. <grin> Feel free to forward my reply to the group and/or Emily.
> context. Then, whenever I start to get distracted and bring up the
> browser, I'm reminded of what I'm supposed to be working on.
The following code might also be useful.
;;;_+ Keep track of what I'm supposed to be doing
;; I've bound sacha/planner-what-am-i-supposed-to-be-doing to F9 F9. I
;; start out by clocking into the task (use planner-timeclock.el and
;; C-c TAB to mark a task as in progress). Then, when I find myself
;; getting distracted, I hit F9 F9 to see my current task in the
;; minibuffer. C-u F9 F9 jumps back to the task so that I can either
;; mark it as postponed. M-x planner-task-pending (bound to C-c C-p in
;; my local config) and M-x planner-task-done (C-c C-x) both clock out
;; of the task. If I want to jump back to the previous window
;; configuration from that planner page, I can just hit F9 F9 again.
(defvar sacha/window-register "w"
"Register for jumping back and forth between planner and wherever I am.")
(defvar sacha/planner-current-task nil
"Current task info.")
(defadvice planner-task-in-progress (after sacha activate)
"Keep track of the task info."
(setq sacha/planner-current-task (planner-current-task-info)))
(defun sacha/planner-what-am-i-supposed-to-be-doing (&optional prefix)
"Make it easy to keep track of what I'm supposed to be working on.
If PREFIX is non-nil, jump to the current task, else display it
in a message. If called from the plan page, jump back to whatever
I was looking at."
(interactive "P")
(if planner-timeclock-current-task
(if (string= (planner-task-page sacha/planner-current-task)
(planner-page-name))
(jump-to-register sacha/window-register)
(if (null prefix)
(message "%s" planner-timeclock-current-task)
(frame-configuration-to-register sacha/window-register)
(planner-find-file (planner-task-page sacha/planner-current-task))
(planner-find-task sacha/planner-current-task)))
(if prefix
(planner-goto-today)
(message "No current task. HEY!"))))
> Good tip !
> How do you make planner auto-publish on save ?
You can steal my config at
http://sacha.free.net.ph/notebook/emacs/emacs-wiki-config.el . Here's
the relevant snippet:
;;;_+ Automatically publish files upon saving
(defun sacha/emacs-wiki-auto-publish ()
(when (derived-mode-p 'emacs-wiki-mode)
(unless emacs-wiki-publishing-p
(let ((emacs-wiki-publishing-p t)
(emacs-wiki-after-wiki-publish-hook nil))
(emacs-wiki-publish-this-page)))))
(add-hook 'emacs-wiki-mode-hook
(lambda () (add-hook 'after-save-hook
'sacha/emacs-wiki-auto-publish nil t)))
--
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
sachac on irc.freenode.net#emacs . YM: sachachua83
- [emacs-wiki-discuss] On the 43folders list, Chris Lowis, 2005/02/18
- [emacs-wiki-discuss] Re: On the 43folders list,
Sacha Chua <=
- [emacs-wiki-discuss] Re: On the 43folders list, Chris Lowis, 2005/02/21
- [emacs-wiki-discuss] Re: On the 43folders list, Andrew J. Korty, 2005/02/21
- [emacs-wiki-discuss] Re: On the 43folders list, Chris Lowis, 2005/02/22
- [emacs-wiki-discuss] Re: On the 43folders list, Sacha Chua, 2005/02/22
- [emacs-wiki-discuss] Re: On the 43folders list, Chris Lowis, 2005/02/22
- [emacs-wiki-discuss] Re: On the 43folders list, Sacha Chua, 2005/02/22
- [emacs-wiki-discuss] Re: On the 43folders list, Chris Lowis, 2005/02/24
- Re: [emacs-wiki-discuss] Re: On the 43folders list, Paul Lussier, 2005/02/23
- [emacs-wiki-discuss] Re: On the 43folders list, Sacha Chua, 2005/02/21
Re: [emacs-wiki-discuss] On the 43folders list, Dave Bauer, 2005/02/27