[Orgmode] Couple more videos of Org-mode clone in Vim
For anybody interested I've posted a couple more videos of features in the would-be Org-mode clone. First is showing basics of sparse-tree-search: http://vimeo.com/16646716 And second is on tags: http://vimeo.com/16650450 I'll try to put something together showing the agenda date views and custom searches, which is what I've spent vast majority of time on. . . . Regards, Herb Sitz ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Was tj3 -- tikz gantt chart
John Hendy jw.he...@gmail.com writes: Hi Eric, While I like tj3, I was looking around for something on tikz/gantt and found something from the pgf mailing list I thought I'd pass along. Check it out. [1] Thanks for the link. My own code was based on this snippet of tikz code actually; I just forgot to give a proper attribution blush. I'll be tinkering more with this to see if some kind of table couldn't be used to bring in the right data to form a gantt chart with tikz in org-mode using babel. which is what I did; did you not see the code in the org file I attached to the message of mine you refer to: http://article.gmane.org/gmane.emacs.orgmode/31824 Where I'd like to go (for my purposes): - dates generated based on first/last task (or something else) - smart text placement (yours is varied to be next to the task; easier to go with the standard of putting them on the left in a colum?) - some kind of dependency denoting - varied fonts for top level vs. sub-level items - pretty it up All of these would be nice. The format of the table I defined is sufficient to enable dependency representation as well, by the way. I look forward to your improvements! Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.02trans (release_7.3.29.gd96c.dirty) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Can I change the link name in TOC?
Water Lin water...@sohu.com writes: While I generate the table of content of my org file, the link of each sub-title will be something like #sec-2.2 But when I change the sequence of the title, the anchor will be changed. I want to maintain permalinks for each anchors. Is it possbile to change the #sec-2.2 into something like #test-keywords? BTW: I am using Chinese for my sub-title, so I think use the title words for anchor is not suitable. Thanks Water Lin This is, what custom IDs are for: --8---cut here---start-8--- * Headline :PROPERTIES: :CUSTOM_ID: myID :END: --8---cut here---end---8--- Now refer to to Headline like this: a href=my-file.html#myIDHeadline/a Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH 1/2] org-agenda: introduce org-agenda-today and org-agenda-get-day-face
On Mon, Nov 08 2010, Julien Danjou wrote: I just noticed a little bug if org-agenda-todayp is called with nil as argument. Here's a fixed version of that patch. From c93cf37f9c41f3fb71fd44e0ce2a4c9ba30224cc Mon Sep 17 00:00:00 2001 From: Julien Danjou jul...@danjou.info Date: Mon, 8 Nov 2010 15:25:22 +0100 Subject: [PATCH] org-agenda: introduce org-agenda-today and org-agenda-get-day-face * org-agenda (org-agenda-today): New function. (org-agenda-get-day-face): New function. (org-timeline): Use org-agenda-today and org-agenda-get-day-face. (org-agenda-list): Use org-agenda-today and org-agenda-get-day-face. (org-todo-list): Use org-agenda-today. (org-get-all-dates): Use org-agenda-today. Signed-off-by: Julien Danjou jul...@danjou.info --- lisp/org-agenda.el | 65 ++- 1 files changed, 33 insertions(+), 32 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 583e670..b7f38ca 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3106,6 +3106,14 @@ no longer in use. (progn (delete-overlay o) t))) (overlays-in (point-min) (point-max) +(defun org-agenda-get-day-face (date) + Return the face DATE should be displayed with. + (cond ((org-agenda-todayp date) + 'org-agenda-date-today) + ((member (calendar-day-of-week date) org-agenda-weekend-days) + 'org-agenda-date-weekend) + (t 'org-agenda-date))) + ;;; Agenda timeline (defvar org-agenda-only-exact-dates nil) ; dynamically scoped @@ -3133,10 +3141,10 @@ dates. org-timeline-show-empty-dates)) (org-deadline-warning-days 0) (org-agenda-only-exact-dates t) - (today (time-to-days (current-time))) + (today (org-agenda-today)) (past t) args - s e rtn d emptyp wd) + s e rtn d emptyp) (setq org-agenda-redo-command (list 'progn (list 'org-switch-to-buffer-other-window (current-buffer)) @@ -3170,8 +3178,7 @@ dates. (progn (setq past nil) (insert (make-string 79 ?-) \n))) - (setq date (calendar-gregorian-from-absolute d) - wd (calendar-day-of-week date)) + (setq date (calendar-gregorian-from-absolute d)) (setq s (point)) (setq rtn (and (not emptyp) (apply 'org-agenda-get-day-entries entry @@ -3185,9 +3192,7 @@ dates. (funcall org-agenda-format-date date)) \n) (put-text-property s (1- (point)) 'face - (if (member wd org-agenda-weekend-days) - 'org-agenda-date-weekend - 'org-agenda-date)) + (org-agenda-get-day-face date)) (put-text-property s (1- (point)) 'org-date-line t) (put-text-property s (1- (point)) 'org-agenda-date-header t) (if (equal d today) @@ -3213,7 +3218,7 @@ When EMPTY is non-nil, also include days without any entries. (if inactive org-ts-regexp-both org-ts-regexp))) dates dates1 date day day1 day2 ts1 ts2) (if force-today - (setq dates (list (time-to-days (current-time) + (setq dates (list (org-agenda-today (save-excursion (goto-char beg) (while (re-search-forward re end t) @@ -3324,9 +3329,7 @@ given in `org-agenda-start-on-weekday'. org-agenda-start-on-weekday nil)) (thefiles (org-agenda-files nil 'ifmode)) (files thefiles) - (today (time-to-days - (time-subtract (current-time) -(list 0 (* 3600 org-extend-today-until) 0 + (today (org-agenda-today)) (sd (or start-day today)) (start (if (or (null org-agenda-start-on-weekday) ( org-agenda-ndays 7)) @@ -3339,7 +3342,7 @@ given in `org-agenda-start-on-weekday'. (day-numbers (list start)) (day-cnt 0) (inhibit-redisplay (not debug-on-error)) - s e rtn rtnall file date d start-pos end-pos todayp nd wd + s e rtn rtnall file date d start-pos end-pos todayp nd clocktable-start clocktable-end filter) (setq org-agenda-redo-command (list 'org-agenda-list (list 'quote include-all) start-day ndays)) @@ -3397,7 +3400,6 @@ given in `org-agenda-start-on-weekday'. (org-agenda-mark-header-line s)) (while (setq d (pop day-numbers)) (setq date (calendar-gregorian-from-absolute d) - wd (calendar-day-of-week date) s (point)) (if (or (setq todayp (= d today)) (and (not start-pos) (= d sd))) @@ -3441,15 +3443,12 @@ given in `org-agenda-start-on-weekday'. (funcall org-agenda-format-date date)) \n) (put-text-property s (1- (point)) 'face - (if (member wd org-agenda-weekend-days) - 'org-agenda-date-weekend - 'org-agenda-date)) + (org-agenda-get-day-face date)) (put-text-property s (1- (point)) 'org-date-line t) (put-text-property s (1- (point)) 'org-agenda-date-header t) (put-text-property s (1- (point)) 'org-day-cnt day-cnt) (when todayp - (put-text-property s (1- (point)) 'org-today t) - (put-text-property s (1- (point)) 'face 'org-agenda-date-today)) + (put-text-property s (1- (point)) 'org-today t)) (if rtnall (insert
Re: [Orgmode] [RFI] Using DISQUS on certain pages
On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn jrhorn...@gmail.com wrote: Suppose I have a project defined (say, org-blog) that I use to generate blog posts, and I want to use Disqus to track comments. Further suppose I don't want to use a templating framework such as jekyll to transform org into HTML. Does anyone have experience inserting disqus code into preambles/postambles? Yes, and it works great. If you want to see a working example take a look at http://greaterskies.com. The source code, including the org-mode setup and headers, footers and jekyll extras, is at https://github.com/juanre/Greater-Skies. The blog part (not at all obvious on the web, just used to enable subscriptions) is done with org-jekyll, https://github.com/juanre/org-jekyll. Hope it helps. jm --- http://juanreyero.com ps. My personal web is also done like that, all org-mode and org-jekyll. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-mode completion tip
Erik Iverson er...@ccbr.umn.edu writes: Hi Erik, However, just this morning I discovered you can use C-M-i in as an alternative to M-TAB in emacs, so that completion also works with that key chord. Yes, because C-i and TAB are the same ASCII char, just like C-m and RET. Emacs can distinguish between them, but in general (and especially wtr. keybindings), they are treated identically. Bye, Tassilo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] tabel is not sent
Hello. At least to me it looks like a bug. I can't send tabel to a receive destination in org-mode with C-c C-c. I have to M-x orgtbl-ctrl-c-ctrl-c. org-version: 7.01trans (few weks old one) -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] tabel is not sent
Hi Lukasz, On Nov 9, 2010, at 9:54 AM, Łukasz Stelmach wrote: Hello. At least to me it looks like a bug. I can't send tabel to a receive destination in org-mode with C-c C-c. I have to M-x orgtbl-ctrl-c-ctrl-c. org-version: 7.01trans (few weks old one) Could you please try the following patch? Greetings - Carsten Modified lisp/org.el diff --git a/lisp/org.el b/lisp/org.el index 8227ed9..fe19976 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17320,7 +17320,8 @@ This command does many different things, depending on context: (if arg (call-interactively 'org-table-recalculate) (org-table-maybe-recalculate-line)) - (call-interactively 'org-table-align)) + (call-interactively 'org-table-align) + (orgtbl-send-table 'maybe)) ((or (org-footnote-at-reference-p) (org-footnote-at-definition-p)) (call-interactively 'org-footnote-action)) -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Habits bug?
I just noticed the following oddity. 1.) I have a custom agenda that consists of: (setq org-agenda-custom-commands '((h Agenda and This Week tasks ((agenda ) (todo THISWEEK) 2.) I have the default agenda period of 1 week at startup. The behavior I see is: a) When I do the C-c a h, I get the entire week, including the habits and habit bars at the end of the section for today (somewhere mid-week) b) If I type d to go into daily mode, the scheduled and extra todo's that are THISWEEK are shown. But the habits and habit bars are not present. c) When I repeat C-c a h to regenerate, it stays in the daily mode (as it should) and the habits and habit bars re-appear. This is odd, and probably reflects a subtle bug somewhere in the regeneration logic for changing the agenda period. It's not a critical issue, since the work around is so easy, but someone who understands that stretch of code might see it easily. R Horn ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] [Babel] Quotes-in-strings not being escaped in python, breaking output
Strings with quotes in them aren't having the inner quotes escaped right while read by ob-python in python. Example: #+BEGIN_SRC python return [['607', 'Show license short name on the deed'], ['255', 'Smart 404 pages']] #+END_SRC #+results: | 607 | Show license short name on the deed | | | | 255 | | Smart | 404 pages | ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] [Babel] Quotes-in-strings not being escaped in python, breaking output
It looks like \' and are not being escaped in org-babel-python-table-or-string, which is the problem. Christopher Allan Webber cweb...@dustycloud.org writes: Strings with quotes in them aren't having the inner quotes escaped right while read by ob-python in python. Example: #+BEGIN_SRC python return [['607', 'Show license short name on the deed'], ['255', 'Smart 404 pages']] #+END_SRC #+results: | 607 | Show license short name on the deed | | | | 255 | | Smart | 404 pages | ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Git commit animation?
has carsten slept since 31 january 2008? going by the commit history i'd say maybe he hasn't ... On Mon, Nov 8, 2010 at 4:16 PM, Jeff Horn jrhorn...@gmail.com wrote: That just blew my mind. Great stuff! On Mon, Nov 8, 2010 at 2:38 PM, Puneeth puncha...@gmail.com wrote: Hi On Tue, Nov 9, 2010 at 12:45 AM, John Hendy jw.he...@gmail.com wrote: Hi, I've tried to find the message with the git commit animation someone created quite a while back showing how org contributions have transpired over time. Is that still being updated? Does it even still exist? Would someone provide the link and/or code of how it worked? I'd like to look at it for another application. Here are the videos. org-mode -- http://vimeo.com/11889681 worg -- http://vimeo.com/15968547 These were created using a tool called gource [[ http://code.google.com/p/gource/ ]] HTH, Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [BUG] tabel is not sent
Carsten Dominik carsten.domi...@gmail.com writes: Hi Lukasz, On Nov 9, 2010, at 9:54 AM, Łukasz Stelmach wrote: Hello. At least to me it looks like a bug. I can't send tabel to a receive destination in org-mode with C-c C-c. I have to M-x orgtbl-ctrl-c-ctrl-c. org-version: 7.01trans (few weks old one) Could you please try the following patch? That's better now :-) -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [RFI] Using DISQUS on certain pages
Juan, Thanks for sharing! I had run across your personal page before, probably linked from worg. I think Greater Skies is a very inspiring project, and must be rewarding to work on. So, if I've gleaned from the source correctly, you've defined a custom postamble and put both pieces of code Disqus generates into the postamble? I wasn't sure whether I should separate them or if it would matter. Also, I didn't see if you needed to use the #diqus_comments id, as disqus suggests, in order to get it to work. Thanks again! Jeff On Tue, Nov 9, 2010 at 9:01 AM, Juan Reyero joa...@gmail.com wrote: On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn jrhorn...@gmail.com wrote: Suppose I have a project defined (say, org-blog) that I use to generate blog posts, and I want to use Disqus to track comments. Further suppose I don't want to use a templating framework such as jekyll to transform org into HTML. Does anyone have experience inserting disqus code into preambles/postambles? Yes, and it works great. If you want to see a working example take a look at http://greaterskies.com. The source code, including the org-mode setup and headers, footers and jekyll extras, is at https://github.com/juanre/Greater-Skies. The blog part (not at all obvious on the web, just used to enable subscriptions) is done with org-jekyll, https://github.com/juanre/org-jekyll. Hope it helps. jm --- http://juanreyero.com ps. My personal web is also done like that, all org-mode and org-jekyll. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] ob-sqlite.el, -init doesn't work with some options
Hello. ob-sqlite.el uses -init option to provide sqlite with a src block content, however, this prevetns sevarl options' from taking an effect. Particularly -header (and it's opposite), -csv and -header Create a database, put a SELECT into a file and compare the effects of the following commands sqlite3 -init file.sql -header -separator ';' -csv db.sqlite cat file.sql | sqlite3 -header -separator ';' -csv db.sqlite A walkaround is to place desired configration commands (the onse beginning with a dot in sqlite) in the src block, e.g: #+BEGIN_SRC sqlite :db passwords.sqlite :results replace .separator | .mode csv select * from myusers; #+END_SRC -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Git commit animation?
On Nov 9, 2010, at 12:52 PM, Matt Price wrote: has carsten slept since 31 january 2008? going by the commit history i'd say maybe he hasn't ... :-) To be honest - I have slept less than I should. - Carsten On Mon, Nov 8, 2010 at 4:16 PM, Jeff Horn jrhorn...@gmail.com wrote: That just blew my mind. Great stuff! On Mon, Nov 8, 2010 at 2:38 PM, Puneeth puncha...@gmail.com wrote: Hi On Tue, Nov 9, 2010 at 12:45 AM, John Hendy jw.he...@gmail.com wrote: Hi, I've tried to find the message with the git commit animation someone created quite a while back showing how org contributions have transpired over time. Is that still being updated? Does it even still exist? Would someone provide the link and/or code of how it worked? I'd like to look at it for another application. Here are the videos. org-mode -- http://vimeo.com/11889681 worg -- http://vimeo.com/15968547 These were created using a tool called gource [[ http://code.google.com/p/gource/ ]] HTH, Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Force completed habits to revert to HABIT todo keyword instead of TODO
Hi Joseph, Joseph Buchignani joseph.buchign...@gmail.com writes: Summary: I would like habits to automatically be marked as the todo keyword HABIT instead of TODO after I mark them DONE Reasons: I want to keep my habits separate from my tasks. But they display together on my TODO list. This makes it hard to keep track of what's a habit and what's not. I could change a setting so that scheduled tasks are no longer considered open. But then I lose the ability to see all my habits in a list on the TODO view. Also, I like to see habits clearly marked HABIT instead of TODO in my org outline. Keeping the keywords separated fits better with my workflow. Normally I only need to work on habits from within the org agenda, not the todo list. For example, I start the day by executing scheduled tasks, then priority A tasks, then priority A habits, etc. Is there some setting I can change to do this? Right now I am doing it manually. Apologies for the late reply, but one simple way to make sure repeating habits return to a HABIT state is to add a REPEAT_TO_STATE property to each of your habits. (Of course, HABIT needs to be defined in your org-todo-keywords.) E.g., --8---cut here---start-8--- * HABIT Run SCHEDULED: 2010-11-09 Tue .+1d/2d :PROPERTIES: :STYLE:habit :REPEAT_TO_STATE: HABIT :END: --8---cut here---end---8--- If you want to do this quickly for all existing habits you could evaluate the following: --8---cut here---start-8--- (org-map-entries '(org-set-property REPEAT_TO_STATE HABIT) +STYLE=\HABIT\ 'agenda) --8---cut here---end---8--- Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] ob-sqlite.el, -init doesn't work with some options
Hi Łukasz, Thanks for mentioning this issue and for posting a workaround. Would you suggest a different method of passing the body of a sqlite code block to the sqlite command? The only other options which immediately occurs to me would involve =cat='ing the body of the code block through a pipe to the sqlite command (which would probably only work on unix systems). Thanks -- Eric Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Hello. ob-sqlite.el uses -init option to provide sqlite with a src block content, however, this prevetns sevarl options' from taking an effect. Particularly -header (and it's opposite), -csv and -header Create a database, put a SELECT into a file and compare the effects of the following commands sqlite3 -init file.sql -header -separator ';' -csv db.sqlite cat file.sql | sqlite3 -header -separator ';' -csv db.sqlite A walkaround is to place desired configration commands (the onse beginning with a dot in sqlite) in the src block, e.g: #+BEGIN_SRC sqlite :db passwords.sqlite :results replace .separator | .mode csv select * from myusers; #+END_SRC ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Force completed habits to revert to HABIT todo keyword instead of TODO
Hi Matt, Thanks for your very helpful reply. I know this is a noob question, so please forgive me for taxing your patience... How do I evaluate the statement you supplied for just one file? E.g. I want to evaluate your statement for notes.org, what do I do? Thanks, JB On Wed, Nov 10, 2010 at 4:26 AM, Matt Lundin m...@imapmail.org wrote: Hi Joseph, Joseph Buchignani joseph.buchign...@gmail.com writes: Summary: I would like habits to automatically be marked as the todo keyword HABIT instead of TODO after I mark them DONE Reasons: I want to keep my habits separate from my tasks. But they display together on my TODO list. This makes it hard to keep track of what's a habit and what's not. I could change a setting so that scheduled tasks are no longer considered open. But then I lose the ability to see all my habits in a list on the TODO view. Also, I like to see habits clearly marked HABIT instead of TODO in my org outline. Keeping the keywords separated fits better with my workflow. Normally I only need to work on habits from within the org agenda, not the todo list. For example, I start the day by executing scheduled tasks, then priority A tasks, then priority A habits, etc. Is there some setting I can change to do this? Right now I am doing it manually. Apologies for the late reply, but one simple way to make sure repeating habits return to a HABIT state is to add a REPEAT_TO_STATE property to each of your habits. (Of course, HABIT needs to be defined in your org-todo-keywords.) E.g., --8---cut here---start-8--- * HABIT Run SCHEDULED: 2010-11-09 Tue .+1d/2d :PROPERTIES: :STYLE: habit :REPEAT_TO_STATE: HABIT :END: --8---cut here---end---8--- If you want to do this quickly for all existing habits you could evaluate the following: --8---cut here---start-8--- (org-map-entries '(org-set-property REPEAT_TO_STATE HABIT) +STYLE=\HABIT\ 'agenda) --8---cut here---end---8--- Best, Matt -- Ignore the following. It is a nonsense sentence that disables Google ads from displaying next to my emails by triggering sensitive keywords. I enjoy the massacre of ads. This sentence will slaughter ads without a messy bloodbath. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Check for broken links in org-mode?
At Sat, 6 Nov 2010 09:22:25 +0100, Magnus Nilsson wrote: Is there any nice way to check for broken links of different kinds in org files? Well, you would have to write it by yourself but the functions are available. You can use `org-next-link' to make point jump to the next link in buffer. This function will throw an error if there is no next link, so wrap it in a (condition case ...) statement. For each link, look what type of link it is. Assuming all links in question are bracket links, use `org-bracket-link-analytic-regexp', a variable with a regexp that breaks down the parsed link into its parts. (when (looking-at org-bracket-link-analytic-regexp) ... ) Check the link type (it is a match string, check the doc string of org-bracket-link-analytic-regexp), grab the link (another match string). Now normalize the link to the file by stripping a possible fragment part (e.g. it might be: foo.org#id, strip the #id) (if (string-match \\([^#]*\\)# path) (setq path (match-string 1 path))) Now use (file-exist-p path) to check if the file exist and do something. HTH, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Force completed habits to revert to HABIT todo keyword instead of TODO
At Wed, 10 Nov 2010 04:37:43 +0800, Joseph Buchignani wrote: Hi Matt, Thanks for your very helpful reply. I know this is a noob question, so please forgive me for taxing your patience... How do I evaluate the statement you supplied for just one file? E.g. I want to evaluate your statement for notes.org, what do I do? Örm, well: The original function would not reset the todo state change, but set the REPEAT_TO_STATE property (i.e.: org-set-property). To use the (right) org-map-entries function interactively, just define a interactive function: (defun hb:set-habit-keyword () *Set keyword of habits in current buffer. (interactive) (org-map-entries '(org-todo (org-entry-get nil REPEAT_TO_STATE)) STYLE=\HABIT\)) And call it with M-x hb:set-habit-keyword. HTH, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpXYPTSShd5H.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Force completed habits to revert to HABIT todo keyword instead of TODO
Sorry, I couldn't help myself: (defun hb:set-habit-keyword-2 () *Reset keyword of done habit. (let ((reset-to (org-entry-get nil REPEAT_TO_STATE))) (if (and reset-to (string= state DONE)) (org-todo reset-to (add-hook 'org-after-todo-state-change-hook 'hb:set-habit-keyword-2) Every time a todo turns into DONE, this function is run and sets the keyword to whatever is stored in REPEAT_TO_STATE. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [RFI] Using DISQUS on certain pages
On Tue, Nov 9, 2010 at 8:05 PM, Jeff Horn jrhorn...@gmail.com wrote: I think Greater Skies is a very inspiring project, and must be rewarding to work on. Thank you very much. It is indeed very rewarding, but only in the rare occasions when I find the time to work on it. Will keep moving, though. So, if I've gleaned from the source correctly, you've defined a custom postamble and put both pieces of code Disqus generates into the postamble? I put them on the templates in jekyll's _layouts. Then you can choose which layout to use with an html chunk at the beginning of each org file, like Beginning of file #+begin_html #+include: ../../../loc/en.yml date: 2008-04-15 layout: page --- #+end_html Also, I didn't see if you needed to use the #diqus_comments id, as disqus suggests, in order to get it to work. I don't know. I set it up quite a while ago, it might have changed. But what's there seems to work. The whole setup is kind of tricky, because I wanted to support a multilanguage site that wasn't a nightmare to update, but I think the above covers what you need. Best, jm On Tue, Nov 9, 2010 at 9:01 AM, Juan Reyero joa...@gmail.com wrote: On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn jrhorn...@gmail.com wrote: Suppose I have a project defined (say, org-blog) that I use to generate blog posts, and I want to use Disqus to track comments. Further suppose I don't want to use a templating framework such as jekyll to transform org into HTML. Does anyone have experience inserting disqus code into preambles/postambles? Yes, and it works great. If you want to see a working example take a look at http://greaterskies.com. The source code, including the org-mode setup and headers, footers and jekyll extras, is at https://github.com/juanre/Greater-Skies. The blog part (not at all obvious on the web, just used to enable subscriptions) is done with org-jekyll, https://github.com/juanre/org-jekyll. Hope it helps. jm --- http://juanreyero.com ps. My personal web is also done like that, all org-mode and org-jekyll. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ -- http://juanreyero.com/ http://unarueda.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Force completed habits to revert to HABIT todo keyword instead of TODO
David, I understand what your second function does, but I'm confused about what the first one does. Does the first function set all habits to have a return to state property? Or does it cause all habits to revert to the return to state defined keyword, if it is defined? I was asking how to set return to state for all the habits contained in a single file. Since I have a lot of habits and none of them currently have a return to state property. Thanks, JB On Wed, Nov 10, 2010 at 5:09 AM, David Maus dm...@ictsoc.de wrote: Sorry, I couldn't help myself: (defun hb:set-habit-keyword-2 () *Reset keyword of done habit. (let ((reset-to (org-entry-get nil REPEAT_TO_STATE))) (if (and reset-to (string= state DONE)) (org-todo reset-to (add-hook 'org-after-todo-state-change-hook 'hb:set-habit-keyword-2) Every time a todo turns into DONE, this function is run and sets the keyword to whatever is stored in REPEAT_TO_STATE. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de -- Ignore the following. It is a nonsense sentence that disables Google ads from displaying next to my emails by triggering sensitive keywords. I enjoy the massacre of ads. This sentence will slaughter ads without a messy bloodbath. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Force completed habits to revert to HABIT todo keyword instead of TODO
At Wed, 10 Nov 2010 05:17:16 +0800, Joseph Buchignani wrote: David, I understand what your second function does, but I'm confused about what the first one does. Does the first function set all habits to have a return to state property? Argh, no. I misread the original question. If you want this property present in all headlines with the HABIT property, use the org-map-entries function supplied by Matt and wrap it in the (interactive) function. Damn, first read carefully, than answer :| Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpt1WYMZKvqe.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: value of properties
Hi again, I write you again, perhaps this time somebody can help me solve the problem. Suppose I have a list like this * TODO vêtements [0/0] :total: :PROPERTIES: :total: 0 :END: - pour week end - [ ] X30 - [X] Y80 - [ ] Z100 - [ ] W 20 - pour les loisirs - [X] X 30 - [ ] Y 80 - [ ] Z 10 - pour la maison: - [ ] pantoufle 25 I want to add all values of the fields that are crossed and keep the sum into the value of the property 'total'. Is it possible to do it using org mode ? I looked over many documents, but not found. Other problem, suppose I have this table inside the same file. | | quoi |prix | |---+---+-| | | X | 500 | | | Y | 700 | | | Z | 100 | | | W | 100 | | | T | 100 | |---+---+-| | # | Total |1500 | | ^ | | montant | #+TBLFM: $montant='(+ @i...@ii);N I wish to sum the value of the variable $montant with the value of the property 'total' from the other part (from the list), and use the result in other computations. Are these things possible using org mode ? I looked today over some examples of babel language, but I did not find what I need. Thanks in advance for any help. Alin Soare. 2010/11/7 Alin Soare as1...@gmail.com Hi, I have been using org mode for a few days and I am impressed. I have followed a few tutorials and videos, however I want to solve a problem and I did not find how can I do it. I have 2 tables , and every such table has a variable $sum, that is the sum of a column. Because I am lisp engineer, I used the formula '(+ @i...@ii);N to compute it, I prefer lisp to calc. My problems are 1: to export the value of the $sum from one table, and make global computations using it 2: to compute the value of some property in function of such variables, defined inside tables. Afterwards, can I compute the value of a property in function of the value of other properties ? Probably my question is stupid, I do not know, because I did not understand yet the principles of properties of org mode. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] [Babel] Quotes-in-strings not being escaped in python, breaking output
I worry about this a bit because of the possible security issue: the ability to execute arbitrary code, since the structure that gets constructed is eval'ed. eg: #+BEGIN_SRC python return [['607', 'Show license short name on the deed'], ['255', '))(message (concat 'hello ' 'world]] #+END_SRC That constructs a set of listp objects which are evaluated and look like: '((607 Show license short name on the deed) (255 )) (message (concat hello world)) It doesn't seem like the second one is being evaluated but it makes me nervous that it's being passed through eval like this at all. Christopher Allan Webber cweb...@dustycloud.org writes: It looks like \' and are not being escaped in org-babel-python-table-or-string, which is the problem. Christopher Allan Webber cweb...@dustycloud.org writes: Strings with quotes in them aren't having the inner quotes escaped right while read by ob-python in python. Example: #+BEGIN_SRC python return [['607', 'Show license short name on the deed'], ['255', 'Smart 404 pages']] #+END_SRC #+results: | 607 | Show license short name on the deed | | | | 255 | | Smart | 404 pages | ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] agenda restriction locks and searching all nodes quickly
Thanks, Carsten. Your LEVEL0 suggestion worked. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] agenda mode - carrying over tasks from previous week
how would i go about making items/tasks that didn't get completed last week carry over into this week? thanks! -- peace, sergio photographer, journalist, visionary http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org-attach-link on Windows XP
Dear All, I'm trying to manage a small personal library using org-mode. The command I find really useful is org-attach, then choose link. However, unluckily, seems Window XP seems not work well with this function, what it actually did is COPY the file... Since I'm managing a little library, I could not bear to have excess copy. So does anyone has advice how to fix this problem? Thanks a lot. Chao ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Fold/unfold part of a paragraph
Hello, Is there a way to fold/unfold part of a paragraph? Something like a headline but can be inlined in a paragraph. For example, when folded, it will look like Here is the reason. Where reason can be expanded to some full explanation. And when exported, the full explanation will be used. Jianshi ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] How to export to ps file when generating agenda file on Windows
Dear all, I'm trying to generating the agenda file everyday as a pdf file, then print it out. But I failed to modify org-mode to do so automatically under windows system, each time I have to get the agenda generated first, then manually M-x ps-spool-buffer-with-faces, to save it as ps file. How to do it automatically? Thanks, Chao ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Use Tags in Properties
Dear all, Is it possible to hide the Tags in the Properties Drawer? Sometimes my items have too many Tags, or the Tags are quite long like (Quantum Mechanics), the line will be quickly filled up... Thanks, Chao ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode