dantecatalfamo / agenda-html

Export an HTML version of org-agenda without opening Emacs
39 stars 3 forks source link

Suggestion: simplify the emacs call #1

Open swerter opened 3 years ago

swerter commented 3 years ago

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

ruanxiang commented 3 years ago

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.

dantecatalfamo commented 3 years ago

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 commented 3 years ago

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

dmitrym0 commented 2 years ago

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.