[O] agenda view of state changes

2015-04-17 Thread grewil3 .
Hi,

is there a way to create a customised agenda view that will list all my
recent timestamped activities? I would like a chronologically ordered list,
where each line corresponds to a timestamp found in the current agenda
file.

I have set my configuration to add timestamps whenever I change states on
items, add notes to items, archive items and perhaps more. It would be
useful to be able to review achievements based on these timestamped events
(not restricted to scheduled/deadlined items).

Something like this:
[2015-04-16 thu 18:10] State "INPROGRESS" from "WAIT": todo-out...
[2015-04-17 fri 09:10] State "DONE from "TODO": todo-outline
[2015-04-17 fri 10:10] Note taken: the beginning of the note...
...

Best regards Greg


[O] automatically run code blocks when loading an org-mode document

2016-07-22 Thread grewil3 .
Hi! When I load the document below, I first need to manually evaluate the
code block before I can use the links. I would like the code block to be
automatically evaluated when I load the document, making the links usable
at once.

Is there some clever in-buffer-setting I can use, to specify that I want
the block called on loading, some kind of post-load hook?

#+BEGIN_SRC emacs-lisp
(defun handy-stuff(arg)
  (message arg))
#+END_SRC

[[elisp:(handy-stuff "foo")][foo]]
[[elisp:(handy-stuff "bar")][bar]]


Re: [O] automatically run code blocks when loading an org-mode document

2016-07-22 Thread grewil3 .
Sir, you are a great genius - many thanks!

On Sat, Jul 23, 2016 at 12:11 AM, Nick Dokos  wrote:

> "grewil3 ."  writes:
>
> > Hi! When I load the document below, I first need to manually evaluate
> the code block before I can use
> > the links. I would like the code block to be automatically evaluated
> when I load the document, making
> > the links usable at once.
> >
> > Is there some clever in-buffer-setting I can use, to specify that I want
> the block called on loading,
> > some kind of post-load hook?
> >
> > #+BEGIN_SRC emacs-lisp
> > (defun handy-stuff(arg)
> >   (message arg))
> > #+END_SRC
> >
> > [[elisp:(handy-stuff "foo")][foo]]
> > [[elisp:(handy-stuff "bar")][bar]]
> >
>
> --8<---cut here---start->8---
> #  -*- find-file-hook: org-babel-execute-buffer -*-
> #+BEGIN_SRC emacs-lisp
> (defun handy-stuff(arg)
>  (message arg))
> #+END_SRC
>
> [[elisp:(handy-stuff "foo")][foo]]
> [[elisp:(handy-stuff "bar")][bar]]
>
> --8<---cut here---end--->8---
>
> will do that (but you get a question re. "safe" local variables when
> you open the file). It also executes *every* code block in the buffer
> which you might not want to do (although it does not matter in this
> case).
>
> --
> Nick
>
>
>