agenda-html icon indicating copy to clipboard operation
agenda-html copied to clipboard

Suggestion: simplify the emacs call

Open swerter opened this issue 4 years ago • 4 comments

Hi

I just had a quick look at your script. Nice :) However, instead of using tmux and send-key you could easily simplify the running of the agenda-html.el by simply doing:

emacs --script agenda-html.el

Or am I missing something?

Cheers

swerter avatar Feb 14 '21 06:02 swerter

Thank you for the great tool which is what I have been searching for long time! I use org-agenda with my customized dash view by defining org-agenda-customize-command with short cut "W", "H" and so on in my .emacs. I would like to automatically export my customized dash view to html by your tool.

I found that your tool export html of (org-agenda-list), I tried to modify it by replacing (org-agenda-list) with (org-agenda nil "W") where "W" is one of my customize command, but it didn't work as expected. Could you please suggest how to export with customized dash view by your tool? Thank you in advance.

ruanxiang avatar Feb 20 '21 01:02 ruanxiang

The reason I load Emacs in a tmux session is that for some reason that I cannot figure out, Emacs refuses to load themes unless you start a window, so the agenda would always come out completely black instead of colored

dantecatalfamo avatar Sep 14 '21 19:09 dantecatalfamo

I find the syntax highlighting for things like the todo keywords and dates really helpful so not having the colors was a no-go for me

dantecatalfamo avatar Sep 14 '21 19:09 dantecatalfamo

Thank you for the great tool which is what I have been searching for long time! I use org-agenda with my customized dash view by defining org-agenda-customize-command with short cut "W", "H" and so on in my .emacs. I would like to automatically export my customized dash view to html by your tool.

I found that your tool export html of (org-agenda-list), I tried to modify it by replacing (org-agenda-list) with (org-agenda nil "W") where "W" is one of my customize command, but it didn't work as expected. Could you please suggest how to export with customized dash view by your tool? Thank you in advance.

Your approach worked fine for me. I ran the script interactively: (load-file "path-toscript") and it threw the following error:

*ERROR*: Not allowed in ’tags’-type agenda buffer or component

I commented out (org-agenda-goto-today) and (org-agenda nil "D") works fine.

dmitrym0 avatar Dec 02 '21 17:12 dmitrym0