Re: [Orgmode] GTD question - how to create Reference and Ticker files
Manish schrieb: On Fri, Apr 17, 2009 at 9:53 PM, Varnit Suri wrote: My solutions are pretty 'raw' - just a text file (with links, etc) for the Reference and a Someday list for the Tickler. Anyone else has more sophisticated solutions? Any comments are appreciated. ---Zitatende--- Not really more sophisticated, but somewhat tried and true: I have a few SomedayMaybe*.org files. Items in those files have the tag Maybe or Someday (or both) and should have no schedules. I review those files in my weekly review and make sure I regularly move items back and forth from these files. *Any* item with a Someday or Maybe tag should be in one of those files. And if I want to be reminded of something on a certain date, I just put an active timestamp into the item (with C-c .), so it will show up on my agenda. This is already completely sufficient to implement the 43-folders technique outlined in David Allen's Book, if you regularly review your agenda. You just set the Date to the first of the month, if the item would go into one of the month folders, and on the first, you reconsider the item and decide for a particular date (or to delete it, mark as done, whatever). Just make sure you look at your *past* agenda every day to catch those reminders, as they won't be moved forward automatically (in contrast to scheduled items). HTH Friedel -- Friedrich Delgado Friedrichs frie...@nomaden.org TauPan on Ircnet and Freenode ;) signature.asc Description: Digital signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Fully featured Web publishing
Hi all, thanks for the excelent org-mode;-) Automatical computing of navigations is not possible (yet). There is a way of achieving this: 1. define and use function my-org-publish-org-to-html which determines what directory level we are on and then calls the original org-publish-org-to-html function 2. define and use my-org-preamble which inserts the preamble based on the directory level computed above 3. patch org-export-as-html so that the config parameters :style and :preamble can be functions as well as strings. Here is rough code. Configuration: :publishing-function my-org-publish-org-to-html :style my-org-style :preamble my-org-preamble The user code: (defun my-org-publish-org-to-html (plist filename pubdir) (let* ((dir (file-name-as-directory (file-truename (plist-get plist :base-directory (fname (file-truename filename)) (rel (substring fname (length dir))) (*org-publish-level* (loop for x in (split-string rel ) count (and (stringp x) (string= / x) (org-publish-org-to-html plist filename pubdir))) (defun my-org-preamble () (let ((pre (apply 'concat (loop for i from 1 upto *org-publish-level* collect ../ (insert div id=\menu\ a href=\ pre index.html\Home/a | a href=\ pre sw/index.html\Software/a | a href=\ pre blog/index.html\Blog/a | a href=\ pre contact.html\Contact/a | a href=\ pre sitemap.html\Site Map/a /div div ))) (defun my-org-style () (let ((pre (apply 'concat (loop for i from 1 upto *org-publish-level* collect ../ (concat link rel=\stylesheet\ href=\ pre style.css\ type=\text/css\/ link rel=\icon\ href=\ pre favicon.ico\ type=\image/x-icon\/ link rel=\shortcut icon\ href=\ pre favicon.ico\ type=\image/x-icon\/))) The patched code in org-export-as-html: @@ -465,7 +465,12 @@ PUB-DIR is set, use this as the publishing directory. (org-infile-export-plist (style (concat (if (plist-get opt-plist :style-include-default) org-export-html-style-default) - (plist-get opt-plist :style) +;;; THL Changed !!! + (let ((s (plist-get opt-plist :style))) + (cond + ((and s (stringp s)) s) + (s (funcall s +;;;(plist-get opt-plist :style) (plist-get opt-plist :style-extra) \n (if (plist-get opt-plist :style-include-scripts) @@ -664,7 +669,12 @@ lang=\%s\ xml:lang=\%s\ date author description keywords style)) - (insert (or (plist-get opt-plist :preamble) )) +;; THL Changed !!! +(let ((preamble (plist-get opt-plist :preamble))) + (cond + ((and preamble (stringp preamble)) (insert preamble)) + (preamble (funcall preamble + ;;(insert (or (plist-get opt-plist :preamble) )) (when (plist-get opt-plist :auto-preamble) (if title (insert (format org-export-html-title-format I think that in general, the org-mode configuration (org-publish-project-alist) would be more flexible/user programable if the config parameters could also be functions (i.e. not limited to strings only). Any ideas whether and how to improve and make the above functionality available in the official release? Thank you, Tomas ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Fully featured Web publishing
Hi Tomas, if you have or will sign a copyright assignment, I'd be happy to accept a patch to this effect. - Carsten On Apr 18, 2009, at 11:23 AM, Tomas Hlavaty wrote: Hi all, thanks for the excelent org-mode;-) Automatical computing of navigations is not possible (yet). There is a way of achieving this: 1. define and use function my-org-publish-org-to-html which determines what directory level we are on and then calls the original org-publish-org-to-html function 2. define and use my-org-preamble which inserts the preamble based on the directory level computed above 3. patch org-export-as-html so that the config parameters :style and :preamble can be functions as well as strings. Here is rough code. Configuration: :publishing-function my-org-publish-org-to-html :style my-org-style :preamble my-org-preamble The user code: (defun my-org-publish-org-to-html (plist filename pubdir) (let* ((dir (file-name-as-directory (file-truename (plist-get plist :base-directory (fname (file-truename filename)) (rel (substring fname (length dir))) (*org-publish-level* (loop for x in (split-string rel ) count (and (stringp x) (string= / x) (org-publish-org-to-html plist filename pubdir))) (defun my-org-preamble () (let ((pre (apply 'concat (loop for i from 1 upto *org-publish-level* collect ../ (insert div id=\menu\ a href=\ pre index.html\Home/a | a href=\ pre sw/index.html\Software/a | a href=\ pre blog/index.html\Blog/a | a href=\ pre contact.html\Contact/a | a href=\ pre sitemap.html\Site Map/a /div div ))) (defun my-org-style () (let ((pre (apply 'concat (loop for i from 1 upto *org-publish-level* collect ../ (concat link rel=\stylesheet\ href=\ pre style.css\ type=\text/css\/ link rel=\icon\ href=\ pre favicon.ico\ type=\image/x-icon\/ link rel=\shortcut icon\ href=\ pre favicon.ico\ type=\image/ x-icon\/))) The patched code in org-export-as-html: @@ -465,7 +465,12 @@ PUB-DIR is set, use this as the publishing directory. (org-infile-export-plist (style (concat (if (plist-get opt-plist :style-include-default) org-export-html-style-default) - (plist-get opt-plist :style) +;;; THL Changed !!! + (let ((s (plist-get opt-plist :style))) + (cond + ((and s (stringp s)) s) + (s (funcall s +;;;(plist-get opt-plist :style) (plist-get opt-plist :style-extra) \n (if (plist-get opt-plist :style-include-scripts) @@ -664,7 +669,12 @@ lang=\%s\ xml:lang=\%s\ date author description keywords style)) - (insert (or (plist-get opt-plist :preamble) )) +;; THL Changed !!! +(let ((preamble (plist-get opt-plist :preamble))) + (cond + ((and preamble (stringp preamble)) (insert preamble)) + (preamble (funcall preamble + ;;(insert (or (plist-get opt-plist :preamble) )) (when (plist-get opt-plist :auto-preamble) (if title (insert (format org-export-html-title-format I think that in general, the org-mode configuration (org-publish-project-alist) would be more flexible/user programable if the config parameters could also be functions (i.e. not limited to strings only). Any ideas whether and how to improve and make the above functionality available in the official release? Thank you, Tomas ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] LaTeX Export problem: cannot open load file: org-latex
Hi I'm using Org-mode version 6.25f on Ubuntu 8.10 with GNU Emacs 22.2.1. Emacs came with an older version of org-mode but I used the Makefile to install the newer version and most things seem to be working. But when I try to export to LaTeX (C-c C-e l or L) I get the following error message in the minibuffer: Cannot open load file: org-latex. Indeed, I don't have any file named org-latex or org-latex.el on my system as it was not part of the org distribution. I'm an absolute elisp newbie but a grep shows that org-install.el references a file org-latex.el. I've tried removing (require 'org-install) from .emacs but then another error message is shown: Wrong type argument: commandp, org-export-as-latex when I try the export. Any help is greatly appreciated. Best regards, Holger ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] GTD question - how to create Reference and Ticker files
Hi Varnit, Varnit Suri vs...@brocade.com writes: Hello, I 'm trying to implement the Getting Things Done approach using Org-mode (like many others!). I 've been thinking of the best way to implement GTD's Reference and Tickler folders in Org-mode. I have a few thoughts of my own, but wanted to check with the community, in case anyone else has a better solution. My solutions are pretty 'raw' - just a text file (with links, etc) for the Reference and a Someday list for the Tickler. Anyone else has more sophisticated solutions? Any comments are appreciated. The wonderful thing about org-mode is that there are many ways to accomplish the same thing. For instance, one could have a file for active projects and another file for someday/maybe items. Or one could use tags to indicate someday/maybe items. I myself use an inactive todo keyword (SOMEDAY) to remove items from my active todo list. E.g., --8---cut here---start-8--- (setq org-todo-keywords '((sequence TODO(t) STARTED(s) | DONE(d) WAITING(w) SOMEDAY(s --8---cut here---end---8--- With this setup I do planning in multiple org files, each of which corresponds to an area of responsibility (household, finances, work1, work2, family, friends, etc.). Thus if I want to mark something as someday/maybe, I simply switch the todo to SOMEDAY. As a bonus, org-mode inserts an inactive timestamp that lets me know when the item became inactive. During reviews, I use the agenda to look over the SOMEDAY list and switch any important items to TODO (and vice versa). I use the agenda view to as my tickler file. I use timestamps as follows: 1. Active timestamps: For appointments or things that have to be done on a particular day. 2. Scheduled timestamps: To postpone an item until a certain date - i.e., make an item show up on my agenda on x date and every day thereafter. 3. Deadline timestamps: To mark when an item is due. I can change the amount of warning time with a negative interval indicator in the timestamp. E.g., the following will start warning me about a deadline ten days in advance: , | * PROJECT Project due | DEADLINE: 2009-06-01 Mon -10d ` Hope this helps, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] LaTeX Export problem: cannot open load file: org-latex
Hi Holger, Holger Hellebro hol...@gmail.com writes: Hi I'm using Org-mode version 6.25f on Ubuntu 8.10 with GNU Emacs 22.2.1. Emacs came with an older version of org-mode but I used the Makefile to install the newer version and most things seem to be working. But when I try to export to LaTeX (C-c C-e l or L) I get the following error message in the minibuffer: Cannot open load file: org-latex. Indeed, I don't have any file named org-latex or org-latex.el on my system as it was not part of the org distribution. I'm an absolute elisp newbie but a grep shows that org-install.el references a file org-latex.el. With org-mode version 6.25f, the file org-export-latex.el was renamed to org-latex.el. Off the top of my head, I can think of a couple of things you might check: 1. If you look in the lisp subdirectory of the org distribution you downloaded, can you confirm that org-latex.el was byte-compiled as a result of the make process? 2. Check the directory where you installed the new org files (e.g., /usr/share/emacs/site-lisp or somewhere else) to see if org-latex is was copied to that directory. I'm sure others will be along with more concrete advice sometime soon. Hope this helps, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Extremely weird key bug in emacs
Can you let us know which operating system you are using, what version of emacs and what version of org-mode, please? This information would help us to make sensible suggestions. On Fri, 17 Apr 2009 23:11:30 -0300 Krishan Rajaratnam krishan...@hotmail.com wrote: Hi, I just installed org mode for emacs and found out that every key uses C-c. The problem is my emacs thinks C-c is C-g, but the funny thing is the ctrl button works fine with other shortcuts in emacs and the c buttons works fine in emacs when used in writing code. But when used together emacs considers it equivalent to C-g, I reinstalled emacs many times and use Ctrl-c to copy and paste things from the clipboard in windows all the time, so I am completely clueless as to what caused this problem or what to do about it. If anyone knows anything about this issue I would really appreicate it if you could let me know how to fix it, thanks for your time. _ Share photos with friends on Windows Live Messenger http://go.microsoft.com/?linkid=9650734 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] LaTeX Export problem: cannot open load file: org-latex
Hi Matt, Thanks, you answered the question. When I renamed the file org-export-latex.el to org-latex.el, modified the Makefile accordingly, rebuilt and reinstalled, it worked. I think there's a problem with the stable distribution (org-6.25f.tar.gz) in that it contains the unrenamed file org-export-latex.el. Someone may want to look into this. Anyway, many thanks for helping me out. Best regards, Holger On Sat, Apr 18, 2009 at 2:45 PM, Matthew Lundin m...@imapmail.org wrote: Hi Holger, Holger Hellebro hol...@gmail.com writes: Hi I'm using Org-mode version 6.25f on Ubuntu 8.10 with GNU Emacs 22.2.1. Emacs came with an older version of org-mode but I used the Makefile to install the newer version and most things seem to be working. But when I try to export to LaTeX (C-c C-e l or L) I get the following error message in the minibuffer: Cannot open load file: org-latex. Indeed, I don't have any file named org-latex or org-latex.el on my system as it was not part of the org distribution. I'm an absolute elisp newbie but a grep shows that org-install.el references a file org-latex.el. With org-mode version 6.25f, the file org-export-latex.el was renamed to org-latex.el. Off the top of my head, I can think of a couple of things you might check: 1. If you look in the lisp subdirectory of the org distribution you downloaded, can you confirm that org-latex.el was byte-compiled as a result of the make process? 2. Check the directory where you installed the new org files (e.g., /usr/share/emacs/site-lisp or somewhere else) to see if org-latex is was copied to that directory. I'm sure others will be along with more concrete advice sometime soon. Hope this helps, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Export options for subtrees
Hi Carsten, If it's not too much trouble, I was wondering if I could request the following properties to set export options for subtrees: EXPORT_AUTHOR EXPORT_DATE In addition to specifying an EXPORT_FILE and EXPORT_TITLE for a subtree, I often find myself wanting to change the date and author lines. Thanks in advance for considering this! - Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export options for subtrees
Sure! It's done. - Carsten On Apr 18, 2009, at 6:01 PM, Matthew Lundin wrote: Hi Carsten, If it's not too much trouble, I was wondering if I could request the following properties to set export options for subtrees: EXPORT_AUTHOR EXPORT_DATE In addition to specifying an EXPORT_FILE and EXPORT_TITLE for a subtree, I often find myself wanting to change the date and author lines. Thanks in advance for considering this! - Matt ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] LaTeX Export problem: cannot open load file: org-latex
On Apr 18, 2009, at 3:02 PM, Holger Hellebro wrote: Hi Matt, Thanks, you answered the question. When I renamed the file org- export-latex.el to org-latex.el, modified the Makefile accordingly, rebuilt and reinstalled, it worked. I think there's a problem with the stable distribution (org-6.25f.tar.gz) in that it contains the unrenamed file org- export-latex.el. Someone may want to look into this. I have made several mistakes with this late mini-releases. I will make the 6.26 release soon, until then, please use 5.25c or the snapshot. - Carsten Anyway, many thanks for helping me out. Best regards, Holger On Sat, Apr 18, 2009 at 2:45 PM, Matthew Lundin m...@imapmail.org wrote: Hi Holger, Holger Hellebro hol...@gmail.com writes: Hi I'm using Org-mode version 6.25f on Ubuntu 8.10 with GNU Emacs 22.2.1. Emacs came with an older version of org-mode but I used the Makefile to install the newer version and most things seem to be working. But when I try to export to LaTeX (C-c C-e l or L) I get the following error message in the minibuffer: Cannot open load file: org-latex. Indeed, I don't have any file named org-latex or org-latex.el on my system as it was not part of the org distribution. I'm an absolute elisp newbie but a grep shows that org-install.el references a file org-latex.el. With org-mode version 6.25f, the file org-export-latex.el was renamed to org-latex.el. Off the top of my head, I can think of a couple of things you might check: 1. If you look in the lisp subdirectory of the org distribution you downloaded, can you confirm that org-latex.el was byte-compiled as a result of the make process? 2. Check the directory where you installed the new org files (e.g., /usr/share/emacs/site-lisp or somewhere else) to see if org-latex is was copied to that directory. I'm sure others will be along with more concrete advice sometime soon. Hope this helps, Matt ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export options for subtrees
Carsten Dominik carsten.domi...@gmail.com writes: Sure! It's done. - Carsten That was fast! Thanks so much. - Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
RE: [Orgmode] GTD question - how to create Reference and Ticker files
Thanks Manish and Matt. I read Charles' recently updated article too: http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html I think category and task tags suffice as far as creating a Tickler list is concerned. The only implementation for the Reference that I could think of was to do something similar: have a separate file with category and context tags, and just log all info there (links, etc). I agree - some info may be project specific and so you could have project-specific reference files too, though searching them may become a problem. Any other ideas? V. -Original Message- From: Manish [mailto:mailtomanish.sha...@gmail.com] Sent: Friday, April 17, 2009 10:02 PM To: Varnit Suri Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] GTD question - how to create Reference and Ticker files On Fri, Apr 17, 2009 at 9:53 PM, Varnit Suri wrote: Hello, I 'm trying to implement the Getting Things Done approach using Org-mode (like many others!). I 've been thinking of the best way to implement GTD's Reference and Tickler folders in Org-mode. I have a few thoughts of my own, but wanted to check with the community, in case anyone else has a better solution. My solutions are pretty 'raw' - just a text file (with links, etc) for the Reference and a Someday list for the Tickler. Anyone else has more sophisticated solutions? Any comments are appreciated. I also looked around for the best way for a long time but I guess what fits one's mind may not fit others'. With that said, Charles Cave published an excellent article on the subject recently.. please check out the Worg. There's been discussions on the very subject in the past.. please check out the list archives as well. IMHO, you do not need a separate tickler file since your agenda/project files can contain timestamped tasks and deadlines and that's your tickler. Someday file can also be implemented by either using a SOMEDAY todo keyword or a SOMEDAY tag. I keep project specfic references within the project subtree and general purpose references in a notes.org file with NOTES and WEBLINKS headings. Org has excellent search facilities as well to scan through these. HTH -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] I wrote code to reverse top-level entries order within region
dericbytes dericby...@gmail.com wrote: I want to reverse the entries of my logs. So the newest is at the top. I know there is the C-c ^ sort function, but I'm not sure if any are applicable. (Not all of my entries are dated) Here's a link to the code I wrote to reverse top-level entries on region. http://dericbytes.blogspot.com/2009/04/emacs-orgmode-my-code-to-reverse.html NOTE: its my first attempt at elisp, any tips for improving future code welcome. I took a quick look and a few things jumped out: o indentation - but maybe that's the result of publishing it on the web? If not, emacs knows a lot about that, so let it help! o If you do C-h f beginning-of-buffer RET, it'll tell you: Don't use this command in Lisp programs! (goto-char (point-min)) is faster and avoids clobbering the mark. o In fact, the last bit of the program ; delete old contents of buffer (let ((buffer-beg) (buffer-end)) (beginning-of-buffer) (setq buffer-beg (point)) (end-of-buffer) (setq buffer-end (point)) (kill-region buffer-beg buffer-end)) can be simplified to (kill-region (point-min) (point-max) If you have not done so already, you should look at the the Emacs Lisp Intro and, after you are familiar with that, at the Elisp manual: both of them should be available through Info - in Emacs, just do C-h i, find the right menu entry and press RET. On my Ubuntu 8.04 system, they show up like this: ... * Emacs Lisp Intro: (eintr). A simple introduction to Emacs Lisp programming. * Elisp: (elisp).The Emacs Lisp Reference Manual. ... HTH, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode