Hi Eric,

Eric Johnson wrote:
I like the planner notes mechanism.  Great way to document work for a
given project and a given date.  The problem is - I want to be able to
add my note to FooBar and have it automatically also put that note on
today's date.  Well - that part was easy.  I have that working.

The real fun part is getting so that when I update that note on the
FooBar page - the same entry on the date page is updated in near real
time, or at least updated at some point during the progress of my
emacs session.


I think this does what you want. I think you need to have the point in the note you want to update when you hit C-x C-s, so you can't change a bunch of notes, and then hit C-x C-s and expect them all to be changed.

(defun jmk-planner-save-buffers ()
  "Update a note if we are on a note.  Run planner-save-buffers."
  (interactive)
  (save-excursion
    (save-window-excursion
      (planner-update-note)
      (planner-save-buffers))))

(define-key planner-mode-map [?\C-x ?\C-s] 'jmk-planner-save-buffers)

Cheers,  Jody


_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to