Re: [Orgmode] Re: Themes Compatible with color-theme.el
Hi everyone, I have a theme with Org customizations called color-theme-folio. it's not done yet, but works fine so far. I'd be happy to make a few more changes and contribute it under whatever license. http://github.com/dto/emacs-config/blob/master/folio.el On Sat, Oct 9, 2010 at 11:54 AM, Yavuz wrote: > I have a theme (a modified zenburn to be less contrasty and use a light > background) at http://github.com/yarkun/zenash if anyone is interested. > > > ___ > 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] Re: Themes Compatible with color-theme.el
Done. There are actually two themes here, one dark and one medium in brightness. These probably only work well on relatively high-contrast LCD or similar flat panels. http://github.com/dto/emacs-config On Sun, Oct 10, 2010 at 3:54 AM, Ian Barton wrote: > On 09/10/10 19:42, David O'Toole wrote: >> >> Hi everyone, I have a theme with Org customizations called >> color-theme-folio. it's not done yet, but works fine so far. I'd be >> happy to make a few more changes and contribute it under whatever >> license. >> http://github.com/dto/emacs-config/blob/master/folio.el >> >> >> On Sat, Oct 9, 2010 at 11:54 AM, Yavuz wrote: >>> >>> I have a theme (a modified zenburn to be less contrasty and use a light >>> background) at http://github.com/yarkun/zenash if anyone is interested. >>> >>> > Thanks David. I'll add the current version to worg. Could I ask that you > rename it color-theme-folio.el, to make it compatible with the naming > convention of the other themes. > > Ian. > ___ 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-babel games screencast
Here's a presentation I made, sorry it's a bit rough but here goes: http://lispgamesdev.blogspot.com/2010/11/lisp-game-development-screencast-1.html ___ 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] Fontification of blocks
Hi Sebastien, I give a definite Vote++ to this feature! 2010/12/10 Sébastien Vauban : > Hi, > > In order to make the blocks stand out more clearly in the mix of prose, code > and table results of many Babel Org files, I've added 2 new faces: > > - org-block-begin-line > - org-block-end-line > > These apply to the line just before and after the block's body: > > #+srcname: top-10-dossiers-with-many-prestations > #+begin_src sql <<< org-block-begin-line > SELECT TOP 10 prsPfiID_fk, COUNT(*) AS '# Prestations' > FROM prestations > GROUP BY prsPfiID_fk > ORDER BY COUNT(*) DESC > #+end_src <<< org-block-end-line > > Not only for =src=, but also for =verse=, =quote=, etc. > > This patch takes care of the correct fontification, both in native style, and > in the "no native fontification" style: > > > > Best regards, > Seb > > -- > Sébastien Vauban > > > ___ > 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] [BABEL] literate Lisp games development questions
Hello orgmoders. We on freenode#lispgames are having the month-long 2010 International Lisp Games Expo, and I'd like to apply literate programming principles, using org-babel, to Lisp game development. I have several reasons for doing this. The resources for a given game object or entity may be scattered across multiple files. There can be many frames of animation (PNG files), methods defined, functions, sounds (.WAV), music (OGG), extensive in-game narrative text, and PAK data (my own format), all to describe one game object. Manually linking and navigating among these many files and pieces of data has become very time consuming as my asset library grows to hundreds of different objects, and re-using assets between projects becomes difficult just because I have to hunt for all the files and snippets of text. The XE2 game engine source is also becoming harder to manage as it grows because of some of the same issues. My short term goal is to write a Common Lisp game for the XE2 engine, but with all the code and text in a single .ORG file (with many links to external png, wav, etc as needed.) With a custom tangle setup, it would be easy to export the .lisp and .pak files my engine requires. Not only would the whole project be organized hierarchically, but I am using tags like these to organize data by "aspects": Presentation Player Structure Environment Controls Combat Enemies Planning Story Each game object could have its own org heading, with subheads and links to code, png files with inline display, some editable properties data for tweaking. I could add commands to open one of the PNGs in Gimp, play a sound, and so on. I have gotten some very basic support working, where you can execute Common Lisp blocks via slime, and basic tangling works as well. See http://github.com/dto/org-babel-lisp/ for my very basic code. Feel free to use this, I already have FSF papers, and I will keep you updated on progress. The document I'm working on is at http://dto.github.com/notebook/void.html My idea is to make a coherent hierarchical design document for the entire game (story, graphics, sound, gameplay) and then embed/link all the required resources/code, bit by bit, filing each link/block in its right place, and tagging everything so i can navigate and search. And now some questions... 1. the html output fontification of source blocks is nice. the pop-out editing of the blocks is nice too. However, can I get the syntax highlighting to show up INLINE in the begin-src block? 2. has anyone been following efforts to prettify org-mode constructs? i would love to be able to replace certain things (like all the #+BEGIN_SRC lines) with something graphical, like a tiny icon with a horizontal rule. anyone done anything in this area? ___ 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: [BABEL] literate Lisp games development questions
Hi Dan I looked at your notes in the icons repo, perhaps we can come up with a brief org file that is the official community standard for the icon themes. On Fri, Jul 2, 2010 at 6:33 PM, Dan Davison wrote: > <...> > > Hi David, > > That sounds fun, and I look forward to looking at it, when I have more > time for fun. > > > 1. the html output fontification of source blocks is nice. the pop-out > > editing of the blocks is nice too. However, can I get the syntax > > highlighting to show up INLINE in the begin-src block? > > I believe the consensus on this list is still that the existing projects > in that direction don't currently work well for doing this. > http://www.emacswiki.org/emacs/MuMaMo > > I had a probably terrible idea that one could fake something a bit like > this by removing the mode lines between split windows. You could even > fake continuity of buffer locations... (Incidentally, I've been enjoying > recently using emacs full screen without the mode line (who needs it all > the time?); when I get a chance I want to write a minor mode that does > away with the mode line by default. Obviously no menu or scroll bars > either.) > > > 2. has anyone been following efforts to prettify org-mode constructs? i > > would love to be able to replace certain things (like all the #+BEGIN_SRC > > lines) with something graphical, like a tiny icon with a horizontal rule. > > anyone done anything in this area? > > Yes, I started doing this. Nicolas Girard did all the ground work in his > org-icons project. I started work on adding icons for src blocks in the > branch named "dan". I can confirm that ruby blocks look quite pretty > when #+begin_src ruby is replaced by an image of a ruby, although > unfortunately I still don't know any ruby. > > http://github.com/ngirard/org-icons/tree/dan > > I believe Nicolas would be happy to have other people help out with that > project. There were a few reorganizations we wanted to do to make it fit > better with Org. > > Best wishes, > > Dan > > ___ > > 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] hypermedia programming with babel
Since discovering org babel, I've been doing a lot of reading and brainstorming, and have collected some thoughts/code/plans in several places: 1. http://github.com/dto/org-babel-lisp Some very basic compatibility. I'm not experienced enough with either babel or slime, perhaps someone can help me flesh this code out. I have papers on file with FSF, please feel free to take org-babel-lisp.el and do whatever you want. 2. http://github.com/dto/hypo My thoughts and some code toward a reproducible-results sort of digital asset management system, with relevance to games. Github's formatter messes it up. To read the raw file, use this link: http://github.com/dto/hypo/raw/master/hypo.org I've made TODO items for the icons discussion. I want to be able to define/contribute my own competing theme. How can I help next? ___ 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] hypermedia programming with babel
Hi Eric, Thanks for the additional info. I'll keep you informed on my progress---I'll be presenting my "paper" for the Lisp Games Expo (see http://dto.github.com/notebook/2010expo.html About linking from the Uses section on the babel page... Should I make a page for the program, or can you just link to my current repo? Either way, it's not quite ready for being on the webpage :) but I see it as a discussion topic here. Do others have thoughts or experiences with multimedia and babel or org? On Mon, Jul 5, 2010 at 4:15 PM, Eric Schulte wrote: > Hi David, > > "David O'Toole" writes: > > > Since discovering org babel, I've been doing a lot of reading and > > brainstorming, and have collected some thoughts/code/plans in several > > places: > > > > 1. http://github.com/dto/org-babel-lisp > > > > Some very basic compatibility. I'm not experienced enough with either > > babel or slime, perhaps someone can help me flesh this code out. I > > have papers on file with FSF, please feel free to take > > org-babel-lisp.el and do whatever you want. > > > > This looks like a good start, you could look to ob-clojure.el for an > example of a slime-driven lisp Babel file. > http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el > > > > > 2. http://github.com/dto/hypo > > > > My thoughts and some code toward a reproducible-results sort of digital > > asset management system, with relevance to games. > > Github's formatter messes it up. To read the raw file, use this link: > > http://github.com/dto/hypo/raw/master/hypo.org > > > > I've made TODO items for the icons discussion. I want to be able to > > define/contribute my own competing theme. > > That looks like a great application for literate programming. It might > be nice to link to this project from the Babel uses page at > http://orgmode.org/worg/org-contrib/babel/uses.php > > > How can I help next? > > Babel in general is in need of some language-specific introductory > tutorials, with the goal of laying out the basic usage plenty of > examples covering simple use case e.g. > - author a shell script which can be tangled out to an executable > - simple processing of data in tables, or execution of code blocks with > the output captured in the buffer > > There is also plenty of room for help with documentation, testing, > etc... > > Thanks! -- Eric > ___ 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
meta model for literate programming [pdf] Re: [Orgmode] hypermedia programming with babel
An interesting paper! http://www.cosc.canterbury.ac.nz/research/reports/HonsReps/1999/hons_9902.pdf On Mon, Jul 5, 2010 at 4:15 PM, Eric Schulte wrote: > Hi David, > > "David O'Toole" writes: > > > Since discovering org babel, I've been doing a lot of reading and > > brainstorming, and have collected some thoughts/code/plans in several > > places: > > > > 1. http://github.com/dto/org-babel-lisp > > > > Some very basic compatibility. I'm not experienced enough with either > > babel or slime, perhaps someone can help me flesh this code out. I > > have papers on file with FSF, please feel free to take > > org-babel-lisp.el and do whatever you want. > > > > This looks like a good start, you could look to ob-clojure.el for an > example of a slime-driven lisp Babel file. > http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el > > > > > 2. http://github.com/dto/hypo > > > > My thoughts and some code toward a reproducible-results sort of digital > > asset management system, with relevance to games. > > Github's formatter messes it up. To read the raw file, use this link: > > http://github.com/dto/hypo/raw/master/hypo.org > > > > I've made TODO items for the icons discussion. I want to be able to > > define/contribute my own competing theme. > > That looks like a great application for literate programming. It might > be nice to link to this project from the Babel uses page at > http://orgmode.org/worg/org-contrib/babel/uses.php > > > How can I help next? > > Babel in general is in need of some language-specific introductory > tutorials, with the goal of laying out the basic usage plenty of > examples covering simple use case e.g. > - author a shell script which can be tangled out to an executable > - simple processing of data in tables, or execution of code blocks with > the output captured in the buffer > > There is also plenty of room for help with documentation, testing, > etc... > > Thanks! -- Eric > ___ 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] imenu support for babel blocks
I tried the following to get an Imenu composed of babel blocks, so that you could browse/jump to blocks. But it doesn't seem to work, I'm guessing that something about how org-mode builds the imenu-generic-expression overwrites my entry. Is there a hook (or could there be a hook added) that allows me to imenu-ify more constructs? (push (list "Source code chunks" "^#\\+\\(source:\\|srcname:\\|function:\\) \\(.*\\)$" 2) imenu-generic-expression) ___ 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] Captions for source code
I'll look into this as well, as it relates to my earlier question about building an imenu full of block names. On Thu, Jul 22, 2010 at 3:20 PM, Eric Schulte wrote: > Hi Robert, > > Currently captions are only supported for Tables and for Links, not for > code blocks. Although the "caption" attribute is used by code blocks it > is only used to hold the code block name, not as an actual caption. > > Adding real captions to code blocks (and moving the code block name to > it's own property) certainly seems like a good idea for future > development. If anyone is interested the > `org-export-attach-captions-and-attributes' function is probably a good > place to start. I've added this to my personal stack, but we'll see if > that ends up meaning anything. > > Best -- Eric > > "Robert Klein" writes: > >> Hi list, >> >> I'm trying to get source code exported to HTML with captions, e.g. like: >> >> >> #+caption: Examples of variable declaration. >> #+begin_src sql >> SELECT 6*9; >> #+end_src >> >> There seems to be code in org-exp.el, see lines 2128 and >> following in version 7.01f of org-mode. >> >> However, I'm unable to find out what I'm doing wrong, atm. >> >> Do you know how I can get this working? >> >> Thank you very much! >> >> Best regards >> Robert >> >> ___ >> 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] [BABEL] help adding a language, please?
Is there an instruction manual documenting how the new org-babel language extensions should work? This would really be helpful, because I had trouble figuring out how to make sessions work in the pre-7.0 api (i'm adding Common Lisp support.) Documenting for how a language extension is supposed to behave, would be great. On Thu, Jul 22, 2010 at 4:13 PM, wrote: > Hi guys, > > Org-mode newbie, here. I'd like to add newlisp to the list > of languages that babel supports. I got ob-template.el and > replaced all occurrences of "template" with "newlisp." > > When I try to execute a code block, it fails, looking for > "inf-newlisp." That's "inferior-mode," right? Can I work > around that somehow? There is a newlisp mode available > here: > http://github.com/may/newlisp-mode > I'm running Org-mode 7.01. > > Org-mode is great! I sure hope you guys are tolerant of > stupid questions, because I've got a bunch of them. > :-) > > -- > signature riding a horse: "clopclopclopclop" > -tom > > ___ > 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] [BABEL] help adding a language, please?
Ah, this is great! Thanks Eric :) and I will keep everyone updated on my progress with the wacky "hypermedia programming" thing i've been working on. Really what it boils down to is Common Lisp support for babel, and an add-on module that brings attachments and other data into the mix. It's a combination paper/tutorial/elisp library bundled into one file. The rough draft in progress is here, if anyone is interested in peeking: http://github.com/dto/hypo/raw/master/hypo.org On Fri, Jul 23, 2010 at 12:01 PM, Eric Schulte wrote: > Hi David, > > The instructions currently live at > http://orgmode.org/worg/org-contrib/babel/languages.php#develop > > The bulk of the information is contained in the documentation strings > and the comments of the ob-template.el file (linked to from the above). > > It should be fairly complete, but please let me know if you see any > avenues of improvement. > > -- Eric > > "David O'Toole" writes: > >> Is there an instruction manual documenting how the new org-babel >> language extensions should work? This would really be helpful, because >> I had trouble figuring out how to make sessions work in the pre-7.0 >> api (i'm adding Common Lisp support.) Documenting for how a language >> extension is supposed to behave, would be great. >> >> On Thu, Jul 22, 2010 at 4:13 PM, wrote: >>> Hi guys, >>> >>> Org-mode newbie, here. I'd like to add newlisp to the list >>> of languages that babel supports. I got ob-template.el and >>> replaced all occurrences of "template" with "newlisp." >>> >>> When I try to execute a code block, it fails, looking for >>> "inf-newlisp." That's "inferior-mode," right? Can I work >>> around that somehow? There is a newlisp mode available >>> here: >>> http://github.com/may/newlisp-mode >>> I'm running Org-mode 7.01. >>> >>> Org-mode is great! I sure hope you guys are tolerant of >>> stupid questions, because I've got a bunch of them. >>> :-) >>> >>> -- >>> signature riding a horse: "clopclopclopclop" >>> -tom >>> >>> ___ >>> 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] Common Lisp / SLIME support for babel
Hi, I've updated my proposed ob-lisp module for the new API. I am now using org updated from git head. http://github.com/dto/org-babel-lisp Despite having the ob-template.el and ob-clojure modules, I'm still stuck making sessions work properly. Executing successive statements with an already-open SLIME session works (testing with SBCL and latest SLIME) but it doesn't update the *inferior-lisp* buffer the way I would like, hangs emacs, and also results in weird errors about "asynchronous evaluation aborted". The tangling works since it is language-agnostic, and the tangling is 95% of what i need. But I would love to be able to execute blocks dynamically without the glitches I have now. Perhaps someone more familiar with org and slime could help? I feel like I've run out of ideas. Thanks everyone. By the way, I am still working on my DAM (digital asset management) litprog ideas, inspired by org-babel. The current version of my proposal document with some ideas: http://github.com/dto/hypo/raw/master/hypo.org An example, working on a game's code using org-babel literate tools: http://github.com/dto/xe2/raw/master/void/void.org ___ 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] user control of source block header line exporting formats
I've attached a diff of my apparently-working changes to allow better control of the way ob-exp.el formats the name and arguments of source code blocks. What do you think? diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el index 796812c..0c34431 100644 --- a/lisp/ob-exp.el +++ b/lisp/ob-exp.el @@ -206,42 +206,66 @@ The function respects the value of the :exports header argument." (org-babel-exp-results info type)) (defvar backend) + +(defvar org-babel-format-code-functions + '(inline org-babel-format-code-inline +block org-babel-format-code-block +lob org-babel-format-code-lob)) + +(defun org-babel-format-code-inline (lang body args switches name) + (format "=%s=" body)) + +(defvar org-babel-format-code-block-control-string "%s(%s)") + +(defun org-babel-format-code-block-default-style (info) + (destructuring-bind (lang body args0 switches name &rest ignore) info +(format org-babel-format-code-block-control-string + name + (mapconcat #'identity args ", " + +(defun org-babel-format-code-block-alternate-style (info) + (destructuring-bind (lang body args0 switches name &rest ignore) info +(format "SOURCE: %s ARGUMENTS: %s LANGUAGE: %s" + name (if (null args) "None." + (mapconcat #'identity args ", ")) + lang))) + +(defvar org-babel-format-code-block-caption-function + 'org-babel-format-code-block-default-style) + +(defun org-babel-format-code-block (lang body args switches name) + (let ((str + (format "#+BEGIN_SRC %s %s\n%s%s#+END_SRC\n" lang switches body + (if (and body (string-match "\n$" body)) + "" "\n" +(when name + (add-text-properties + 0 (length str) + (list 'org-caption + (funcall org-babel-format-code-block-caption-function + (list lang body args switches name))) + str)) +str)) + +(defun org-babel-format-code-lob (lang body args switches name) + (let ((call-line (and (string-match "results=" (car args)) + (substring (car args) (match-end 0) +(cond + ((eq backend 'html) + (format "\n#+HTML: %s\n" + call-line)) + ((format ": %s\n" call-line) + (defun org-babel-exp-code (info type) "Prepare and return code in the current code block for export. -Code is prepared in a manner suitable for exportat by +Code is prepared in a manner suitable for export by org-mode. This function is called by `org-babel-exp-do-export'. The code block is not evaluated." - (let ((lang (nth 0 info)) -(body (nth 1 info)) -(switches (nth 3 info)) -(name (nth 4 info)) -(args (mapcar - #'cdr - (org-remove-if-not (lambda (el) (eq :var (car el))) (nth 2 info) -(case type - ('inline (format "=%s=" body)) - ('block - (let ((str - (format "#+BEGIN_SRC %s %s\n%s%s#+END_SRC\n" lang switches body - (if (and body (string-match "\n$" body)) - "" "\n" - (when name - (add-text-properties - 0 (length str) - (list 'org-caption - (format "%s(%s)" - name - (mapconcat #'identity args ", "))) - str)) - str)) - ('lob - (let ((call-line (and (string-match "results=" (car args)) - (substring (car args) (match-end 0) - (cond - ((eq backend 'html) - (format "\n#+HTML: %s\n" - call-line)) - ((format ": %s\n" call-line + (destructuring-bind (lang body args0 switches name &rest ignore) info +(let ((args (mapcar #'cdr + (org-remove-if-not (lambda (el) (eq :var (car el))) args0 + (let ((formatter (getf org-babel-format-code-functions type))) + (funcall formatter lang body args switches name) (defun org-babel-exp-results (info type &optional silent) "Evaluate and return the results of the current code block for export. ___ 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] Common Lisp / SLIME support for babel
Hi Eric, I just tried it out, and it seems to work great! Thanks so much for this. So, I already have FSF papers, consider it yours :) On Tue, Aug 3, 2010 at 10:12 AM, Eric Schulte wrote: > Hi David, > > I've forked your github repository, and I now have it to the point where > basic session and external evaluation are both working on my system > using SBCL. > > It is now also possible to pass variables into lisp blocks. > > It certainly needs more cleanup and testing, but this initial pass is up > at http://github.com/eschulte/org-babel-lisp > > Cheers -- Eric > > "David O'Toole" writes: > >> Hi, I've updated my proposed ob-lisp module for the new API. I am now >> using org updated from git head. >> http://github.com/dto/org-babel-lisp >> >> Despite having the ob-template.el and ob-clojure modules, I'm still >> stuck making sessions work properly. Executing successive statements >> with an already-open SLIME session works (testing with SBCL and latest >> SLIME) but it doesn't update the *inferior-lisp* buffer the way I >> would like, hangs emacs, and also results in weird errors about >> "asynchronous evaluation aborted". >> >> The tangling works since it is language-agnostic, and the tangling is >> 95% of what i need. But I would love to be able to execute blocks >> dynamically without the glitches I have now. >> >> Perhaps someone more familiar with org and slime could help? I feel >> like I've run out of ideas. >> >> Thanks everyone. By the way, I am still working on my DAM (digital >> asset management) litprog ideas, inspired by org-babel. >> The current version of my proposal document with some ideas: >> http://github.com/dto/hypo/raw/master/hypo.org >> An example, working on a game's code using org-babel literate tools: >> http://github.com/dto/xe2/raw/master/void/void.org >> >> ___ >> 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] camel.el, for CamelCase links
http://github.com/dto/folio/blob/master/camel.el Someone asked about this recently, i have some partially working code. Anyone want to try? ___ 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] [PATCH] Mode-specific fontification of babel source blocks
I've got a preliminary patch that adds optional "native" fontification for source blocks. It uses the block's declared mode to fontify the block text. So now blocks look the way they should, and this opens the way to further enhancements. Anyone up for an icons theme standard discussion? diff --git a/lisp/org.el b/lisp/org.el index d2c1fdf..843e4fe 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5005,17 +5005,25 @@ will be prompted for." '(display t invisible t intangible t)) t))) +(defvar org-src-fontify-natively nil + "When non-nil, fontify source blocks like their major mode would.") + (defun org-fontify-meta-lines-and-blocks (limit) "Fontify #+ lines and blocks, in the correct ways." (let ((case-fold-search t)) (if (re-search-forward - "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\)" + "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\) ?\\(\\(\\w\\|-\\)*\\)" limit t) - (let ((beg (match-beginning 0)) - (beg1 (line-beginning-position 2)) - (dc1 (downcase (match-string 2))) - (dc3 (downcase (match-string 3))) - end end1 quoting block-type) + (let* ((beg (match-beginning 0)) + (block-start (match-end 0)) + (block-end nil) + (language (downcase (if (stringp (match-string 6)) + (match-string 6) + "AA"))) + (beg1 (line-beginning-position 2)) + (dc1 (downcase (match-string 2))) + (dc3 (downcase (match-string 3))) + end end1 quoting block-type) (cond ((member dc1 '("html:" "ascii:" "latex:" "docbook:")) ;; a single line of backend-specific content @@ -5035,6 +5043,7 @@ will be prompted for." (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*") nil t) ;; on purpose, we look further than LIMIT (setq end (match-end 0) end1 (1- (match-beginning 0))) + (setq block-end (match-beginning 0)) (when quoting (remove-text-properties beg end '(display t invisible t intangible t))) @@ -5044,7 +5053,28 @@ will be prompted for." (add-text-properties beg beg1 '(face org-meta-line)) (add-text-properties end1 end '(face org-meta-line)) (cond - (quoting + (org-src-fontify-natively + (when (and (stringp language) (> (length language) 1)) + (let* ((mode-command (intern (concat (substring language 1) "-mode"))) + (string (buffer-substring-no-properties block-start block-end)) + (modified (buffer-modified-p)) + (fontified-output + (with-temp-buffer + (insert string) + (message language) + (funcall mode-command) + (font-lock-fontify-buffer) + (add-text-properties + (point-min) (point-max) + '(font-lock-fontified t fontified t font-lock-multiline t)) + (buffer-substring (point-min) (point-max) + (when fontified-output + (assert (stringp fontified-output)) + (goto-char block-start) + (delete-region block-start block-end) + (insert fontified-output) + (set-buffer-modified-p modified) + (quoting (add-text-properties beg1 end1 '(face org-block))) ((not org-fontify-quote-and-verse-blocks)) ((string= block-type "quote") ___ 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] Mode-specific fontification of babel source blocks
I've placed a screenshot of the fontification here: http://imagebin.ca/view/iRVK_as7.html On Tue, Aug 3, 2010 at 7:12 PM, David O'Toole wrote: > I've got a preliminary patch that adds optional "native" fontification > for source blocks. It uses the block's declared mode to fontify the > block text. So now blocks look the way they should, and this opens the > way to further enhancements. Anyone up for an icons theme standard > discussion? > ___ 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] Mode-specific fontification of babel source blocks
Hi, I don't have much more to do on the patch. I suspect it could be slow with larger files, perhaps it could be programmed to only refontify changed blocks (i.e. use the caching mechanism for block results to prevent redundant fontifying. Perhaps someone who knows about babel internals can help? On Tue, Aug 3, 2010 at 10:55 PM, Dan Davison wrote: > "David O'Toole" writes: > >> I've got a preliminary patch that adds optional "native" fontification >> for source blocks. It uses the block's declared mode to fontify the >> block text. So now blocks look the way they should, and this opens the >> way to further enhancements. > > Hi David, > > This is great! Here's a patch which allows the src blocks to have > switches and header args, and also uses `org-src-lang-modes' to find the > major mode. Do you want to host this somewhere while it evolves? I've > put my commits in branch src-block-display of > git://repo.or.cz/org-mode/babel.git for the moment. > > --8<---cut here---start->8--- > diff --git a/lisp/org.el b/lisp/org.el > index 843e4fe..ad8b7f9 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -5012,14 +5012,13 @@ will be prompted for." > "Fontify #+ lines and blocks, in the correct ways." > (let ((case-fold-search t)) > (if (re-search-forward > - "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| > \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\) ?\\(\\(\\w\\|-\\)*\\)" > + ;; 1 2 3 3 4 5 5 4 > 2 6 6 7 7 1 > + "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| > \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)[ \t]*\\([^ \t\n]*\\)[ \t]*\\(.*\\)\\)" > limit t) > (let* ((beg (match-beginning 0)) > (block-start (match-end 0)) > (block-end nil) > - (language (downcase (if (stringp (match-string 6)) > - (match-string 6) > - "AA"))) > + (language (match-string 6)) > (beg1 (line-beginning-position 2)) > (dc1 (downcase (match-string 2))) > (dc3 (downcase (match-string 3))) > @@ -5053,9 +5052,10 @@ will be prompted for." > (add-text-properties beg beg1 '(face org-meta-line)) > (add-text-properties end1 end '(face org-meta-line)) > (cond > - (org-src-fontify-natively > - (when (and (stringp language) (> (length language) 1)) > - (let* ((mode-command (intern (concat (substring language > 1) "-mode"))) > + ((and org-src-fontify-natively language) > + (let* ((lang-mode > + (or (cdr (assoc language org-src-lang-modes)) > (intern language))) > + (mode-command (intern (concat (symbol-name > lang-mode) "-mode"))) > (string (buffer-substring-no-properties block-start > block-end)) > (modified (buffer-modified-p)) > (fontified-output > @@ -5073,7 +5073,7 @@ will be prompted for." > (goto-char block-start) > (delete-region block-start block-end) > (insert fontified-output) > - (set-buffer-modified-p modified) > + (set-buffer-modified-p modified > (quoting > (add-text-properties beg1 end1 '(face org-block))) > ((not org-fontify-quote-and-verse-blocks)) > --8<---cut here---end--->8--- > > >> Anyone up for an icons theme standard >> discussion? > > Yes. > > Dan > >> >> ___ >> 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] request for comments on org icon theme standards
There's been some interest in embedding graphical icons and other indicators into org-mode buffers to increase readability and reduce clutter. One nice icon set based on the Tango color scheme has been released, and it would be useful to define icon themes for org so that the eventual org-icons contrib can support loading different icon sets. I suppose we could just inventory the existing icons and make that into an icon themes standard, perhaps I will do that tonight and write up a short document. ___ 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] Org now fontifies code blocks
hi everyone, sorry for my silence, I had very little internet access on my seaside vacation. thanks so much everyone for making my dream of fontified source blocks a reality :) On Fri, Sep 3, 2010 at 3:10 PM, Thomas S. Dye wrote: > Aloha Dan, > > This is really nice. Thanks for shepherding it along. > > In some of my use cases there is a substantial delay when opening a large > file and then unfolding sections with many source code blocks. I don't mind > this and intend to keep the feature on, but I do think it should be off by > default because the user potentially pays an appreciable time penalty for > the pleasure of semantic source code markup. > > Thanks again for this nice feature. > > All the best, > Tom > > On Sep 3, 2010, at 7:30 AM, Eric S Fraga wrote: > >> On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison >> wrote: >>> >>> I've just pushed changes which mean that Org now fontifies code in code >>> blocks. Currently, this is turned on by default, so it would be helpful >>> if people could report any problems, and opinions as to whether it >>> should be on or off by default. >> >> [...] >> >> This is brilliant! Works very well on my notebook (with small code >> blocks as that's all I tend to have). Many thanks! >> -- >> Eric S Fraga >> GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D >> ___ >> 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] Re: Org now fontifies code blocks
maybe there could be an on-by-default variable called org-warn-when-editing-src-block-in-org-buffer, or make the text readonly, etc. making this on-by-default would seem to create another discussion about things being on-by-default :) however, if fontification is on by default, then this should also be on by default, since fontification causes the mistaken in-org-buffer edits that Richard points out, which seems reasonable to want to prevent systematically. I've done this myself a few times. On Mon, Sep 6, 2010 at 12:59 PM, Richard Riley wrote: > Eric S Fraga writes: > >> On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison >> wrote: >>> >>> I've just pushed changes which mean that Org now fontifies code in code >>> blocks. Currently, this is turned on by default, so it would be helpful >>> if people could report any problems, and opinions as to whether it >>> should be on or off by default. >> >> [...] >> >> This is brilliant! Works very well on my notebook (with small code >> blocks as that's all I tend to have). Many thanks! > > Without wanting to rock the boat I think its safer to have this disabled > by default. I cant tell you how many times I thought I was in the LISP > buffer and ended up making a mess since this enhancement was added. I > realise I can configure it myself but possibly the more conservative > "stick with old default" is better? It IS a nice feature when in more > capable hands than mine ;) What next? nxhtml integration and live > editing inside the src blocks? > > > > > > ___ > 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] Re: Org now fontifies code blocks
I agree Bastien :) On Mon, Sep 6, 2010 at 2:30 PM, Bastien wrote: > If setting org-src-fontify-natively to `t' by default triggers a debate > on whether we need to set org-warn-when-editing-src-block-in-org-buffer > on or off by default, I'd rather set org-src-fontify-natively off by > default... > > My 2 cts, > > -- > Bastien > ___ 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: [O] org-mode fontification error when exporting to LaTeX
Hi, try doing (setq debug-on-error t) and then re-export; this should give you a backtrace. but sometimes fontification stuff can have errors without backtraces. try checking the *Messages* buffer. misbehaving font-lock rules and improperly defined faces can also be issues. On Tue, Jul 12, 2011 at 9:52 PM, Luke J Crook wrote: > I get an 'org-mode fontification error' when I export to LaTeX. > Any idea what may be causing this? > > Thanks, > -Luke > > >
[O] wolfram's computable document format
http://www.wolfram.com/cdf/ Looks nice, and could be very interesting to orgmoders.
[O] documentary filmmaking and reproducible research?
Greetings, org community. A while back I made two short (less than 10 minute) amateur documentary films. I used org-mode to outline everything, structure my notes and the many public domain texts/images I used, and coordinate the recording process for the voiceovers. I've also separately experimented with using org as an asset management system complete with binary attachments, Dublin Core metadata to keep track of (among other things) licensing information for assets used in video game development. I have some (somewhat disorganized) thoughts and references collected here: https://github.com/dto/ioforms/raw/master/ioforms.org I've just seen the documentary film "Inside Job", and then watched it over again, and listened to the voiceover commentary of the film's director and producer. They discussed using many gigantic, complex Word and Excel documents to organize the data they needed to make the film, and apparently emailing these big MS Office files around the world to coordinate the deep research the team were doing right up until the film was finished. http://en.wikipedia.org/wiki/Inside_Job_(film) One of the most striking aspects of Inside Job is its effective use of animated diagrams with explanatory voiceover. By consistent use of terms, shapes, simple icons, and color-coding, the diagrams lead to some of the most effective moments of the film. Aside from many illustrative bar and line graphs, the filmmakers use "block-and-arrow" animations to explain the flows of money in what they call the "securitization food chain". An important part of the film are network analyses (identifying single people who serve or have served on multiple corporate boards of directors, or who went from a board of directors to a position at a regulatory agency regulating the same corporations, or identifying groups of people who served together on the same boards, and so on. I wonder what it might have been like if something like Gephi (http://gephi.org) had been used instead of Microsoft Excel. Apparently now there is also some information on use of the R language at the New York Times' graphics department. http://www.r-bloggers.com/amanda-cox-on-how-the-new-york-times-graphics-department-uses-r/ And perhaps people here have read arguments that David X. Li's famous statistical formula had a part to play in the debacle. So, what do people think of assembling free software so that anyone can make reproducibly-researched, remixable, crowd-sourced documentary films? Or even just research papers with some really nice animations? :) And use org-publish to throw the "source code" of the documentary on the internet for inspection and criticism? I'm seeing a common theme, of how software tools (whether MS Office, or org and R) become involved in the process of creating and then communicating the results of research. The government is already using stuff like link analysis to get information about the general public (to identify connections between members of Wikileaks, Anonymous) but it might be interesting to try the reverse, and use software to connect people who can then cooperate and share information, and perhaps discover connections or groups (cells?) of individuals who are connected across networks in academe, government, corporations, non-governmental organizations, large media institutions, and so on. Of course it doesn't have to be Julian Assange type intrigue, it could just be another fun thing to do with Orgmode. What do you think?
Re: [O] ob-lilypond
this is fantastic :) org mode is becoming like the Jupiter of the emacsian solar system. On Tue, Jun 28, 2011 at 8:11 AM, Christian Moe wrote: > Hi, > > I'm thrilled that Lilypond has been added to Babel, grateful for the extra > thought given to Mac users -- and completely bowled over by your demos! > > Rather than put together complex scores or generate arpeggios the literate > programming way, though, all I'd like to do is to easily include simple > snippets of music notation in Org documents (elaboration follows). > > So please consider this a polite request to bump up "Consider the option to > embed resultant partial musical output into org file" from SOMEDAY to TODO > in your task list... > > Use cases: > > - Self-contained documentation, e.g. using Org to author a text like the > Lilypond documentation: much prose with code examples and the results of > those examples interspersed. > > - Writing a musicology paper, with captioned and cross-referenced examples > (not /my/ use case, but someone might...) > > - Putting together a simple song booklet, such as for a summer camp, with > lyrics and possibly illustrations. (This is my main interest.) > > Ways to do it: > > One (imperfect) solution would be a header argument to just surround the > exported content of Lilypond blocks with the appropriate HTML tags / LaTeX > environment for lilypond-book to act on, and perhaps a post-processing step > to automatically call lilypond-book on the exported document. I can probably > set up something like this for myself. > > But much better, IMO, would be a way to `evaluate' a single Lilypond block > and get #+RESULTS with a link to a PNG representing just that snippet of > music. The snippet would then show up in subsequent exports as an included > graphic without any post-processing, and could also be viewed in-buffer with > `C-c C-x C-v'. (For my money, this and not `tangle all' would be the > intuitive use of `C-c C-c' on a block, but I understand how your choice > makes sense for other uses.) > > Yours, > Christian > > > > On 6/27/11 3:00 PM, Martyn Jago wrote: >> >> Hi >> >> This is an invitation to try / test ob-lilypond - enabling LilyPond >> Score Generation / Arrangement from within org-mode. >> >> Available on Github at https://github.com/mjago/ob-lilypond >> >> This is a beta release, but includes examples, instructions, and >> tests, and has been tested on OSX and nix. >> >> Any further testing would be helpful. >> >> Following is the readme.org file which is rendered correctly on >> Github... >> >> ---> >> >> * Emacs Org Babel LilyPond Mode >> ** Purpose >> Allow LilyPond Score Generation to take place within Emacs Org-mode >> using literate programming principles. >> >> ** Examples >> Several examples are included >> *** Misty (Jazz Standard utilising org-mode to organise voice and other >> data) >> - Here is an example Org LilyPond File]] exported as HTML >> - Resultant Score exported in pdf format >> - Generated Score export of individual Pages (png) >> *** Modal Cycles (Utilises org-babel and noweb to generate notes) >> - Generated Score >> - Generated Midi File >> *** Modal Cycles 2 (Utilises org-babel and noweb to generate notes) >> - Generated Score >> - Generated Midi File >> *** Modes in the Key of C (another example of polyglot lilypond >> programming) >> - Generated Score >> Generated MIDI File >> >> ** Features >> - Optional Automated LilyPond Compilation following the "Tangling" >> of a "Literate Org LilyPond" file >> - Optional Automated display of resultant Musical Score following >> compilation >> - Optional Automated playing of the resultant MIDI file following >> compilation >> - Highlights syntax errors in Org file following a failed compilation >> - Integrates with LilyPond-Mode >> - Cross-Platform (OSX, nix, win32) >> >> ** Usage >> >> *** Compiling lilypond source >> Hitting 'C-c C-c' within a lilypond block initiates ly-tangle (tangling of >> all >> lilypond blocks). Depending on the feature settings, ob-lilypond will >> then either display a pdf of the score, play the generated midi file, >> both, or neither. >> >> 'M-x ly-tangle' can also be called from anywhere in the file >> and can be tied to a function key with something like... >> >> #+begin_src emacs-lisp >> >> (global-set-key [f8] 'ly-dev-tangle) >> >> #+end_src >> >> *** Commands >> >> Some commands are included to quickly disable certain post-tangle >> activities... >> - ly-toggle-midi-play (toggle whether midi will be played following a >> successful compilation) >> - ly-toggle-pdf-display (toggle whether pdf will be displayed following >> a successful compilation) >> >> >> NOTE:- If using Timidity for midi playback, kill the midi stream with >> C-g in Emacs >> >> ** Setup (add to emacs init file) >> *** Cloning ob-lilypond >> >> The Files need to be downloaded to your relevant dotfiles directory... >> >> #+BEGIN_SRC sh >> >> git clone http
[Orgmode] pretty icons in org buffers
I've been re-entering my life data into Orgmode after about a year of just using a palm pilot. So I would like to contribute something to the org community again. A while back I wrote some elisp code for displaying bitmap icons as overlays in org buffers (screenshots at http://dto.github.com/notebook/linkd.html ) As you can see I also drew a bunch of .xpm icons for emacs to display in the buffers. I would be happy to contribute these icons and rework that 30 or 40 lines of overlay code back into a nice little org extension. After a discussion on the #org-mode IRC channel, it seems like there might be a demand for this. We have at least 2 people who want it. :) What do people think of icons in org buffers? This could actually reduce visual noise and increase comprehension. Think of priorities being colored circles instead of [#A] [#B] [#C]. Or TODO and DONE and CANCELED being represented by different checkboxy icons. ___ 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] org-plotting with date as the independent variable
I'm having trouble with org-plotting data that is captured on certain dates over time, like my bodyweight. My table looks like this, but the plotting seems to be very wrong: #+PLOT: ind:1 timefmt:"%Y-%m-%d" with:points | Date | Weight | |+| | 2008-09-26 |266 | | 2008-10-08 |261 | | 2008-10-16 |263 | | 2008-10-19 |259 | | 2009-05-20 |272 | | 2009-06-12 |274 | | 2009-06-23 |275 | I've attached the incorrect image. Also how can I plot the totals from a bunch of separate tables as the dependent variable? Each of the tables would be like the following below: | Time | Description| Calories | |--++--| | 6:00 | Whey shake, 2 scoops | 200 | | | + 2 cups skim milk | 180 | | 9:30 | 4 egg whites | 120 | | | + 2 slices salami | 200 | | | + 1 slice cheese | 110 | | | Whey shake, 2 scoops | 200 | | | + 2 cups skim milk | 180 | | | light yogurt | 60 | | | rice cake | 40 | | | + 2 tbsp peanut butter | 200 | |--++--| | | TOTAL | 1490 | #+TBLFM: @12$3=vsum(@2$...@11$3) <>___ 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] [ANN] org-icons.el
Hi everyone, I really like Nicolas' icons, and I am developing an Emacs color-theme that coordinates with them (screenshots soon!) I've also agreed to help out with the code, since I wrote some similar stuff a while back. Carsten: right now this code requires a patch to org.el, but I'm not sure how much effect it has on other code---can you peek at the patch and see if this icons code could be made to run on a stock org.el by integrating the patch? On Tue, Jun 23, 2009 at 3:38 PM, Nicolas Girard wrote: > Hi all, > > a while ago, David mentionned that at least two people from the > #org-mode IRC channel would be interested in having pretty icons in > org-mode buffers. I have to confess I'm the second one :-) > > After a little experimentation, I ended up with the results shown in > these screenshots [1] [2]. > > The code can be found on github [3]. Currently, it is not based > on overlays, like David's linkd.el, but on display properties. It is > still unclear which of the approach is the best, but as David > offered his help and is by far more skilled in elisp than I, > hopefully these kind of implementation details will be solved > quickly and the code will become actually useable. > > As for the icons, I make them from scratch using Inkscape and the > Tango [4] colour palette. > > So, what do you think ? Is this a direction you'd want org-mode > to go ? Please, share your feedback & suggestions ! > > Also, I was thinking that putting such kind of screenshots in org-mode's > website could make us gain a little more votes... > > Cheers, > Nicolas > > [1] > http://github.com/ngirard/org-icons/blob/20ab287cd6ab5a5bb3fc8dfc6524f3dd1ab29b2e/example/screenshot1.png > [2] > http://github.com/ngirard/org-icons/blob/20ab287cd6ab5a5bb3fc8dfc6524f3dd1ab29b2e/example/screenshot2.png > [3] http://github.com/ngirard/org-icons/tree/master > [4] http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines > > > ___ > 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] [ANN] org-icons.el
I'm sorry, the patch is in Nicolas' github repo: http://github.com/ngirard/org-icons/blob/b8be3d85b87c4fe6ce31cdc931fd1b77bb170a5c/lisp/org-icons.patch On Tue, Jun 23, 2009 at 7:11 PM, Bastien wrote: > "David O'Toole" writes: > > > Carsten: right now this code requires a patch to org.el, but I'm not sure > how > > much effect it has on other code---can you peek at the patch and see if > this > > icons code could be made to run on a stock org.el by integrating the > > patch? > > (David, I think you forgot the patch...) > > -- > Bastien > ___ 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] [ANN] org-icons.el
> On Wed, Jun 24, 2009 at 7:56 AM, Carsten Dominik < carsten.domi...@gmail.com> wrote: > > To be honest, I was not excited when I first saw David's icons. > Yours look a lot better - but I don't expect to use them myself. Well I'm no visual artist :) I like nicolas' icons better too. I've even changed my color theme to match them! ___ 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] org and htmlfontify
Hello orgmoders. I thought I would share my custom publishing function for using htmlfontify together with org-publish to automatically convert Lisp source code files into HTML with my own custom-inserted anchors. The lisp snippet is below. This was used to make the HTML links in my developer documentation properly jump to particular headings in the HTMLfontified output (try the page and see what I mean: http://dto.github.com/notebook/developers-guide.html I am also working something else org-related: http://dto.github.com/notebook/folio.html (defun spaces-to-underscores (string) (save-match-data (with-temp-buffer (insert string) (goto-char (point-min)) (while (re-search-forward " \\|-" nil t) ;; and dashes! (replace-match "_")) (buffer-substring-no-properties (point-min) (point-max) (defun publish-lisp-to-html (plist filename pub-dir) (interactive) (let* ((dir (file-name-directory filename)) (base (file-name-sans-extension (file-name-nondirectory filename))) (target (expand-file-name (concat base ".html") pub-dir)) (html nil) (hfy-src-doc-link-style "color: #a020f0; font-weight: bold;") (hfy-sec-doc-link-unstyle " color: #4d4d4d;")) (with-current-buffer (find-file-noselect filename) (hfy-force-fontification) (setf html (hfy-fontify-buffer dir filename))) (with-current-buffer html ;; add anchors for all three-semicolon headings (goto-char (point-min)) (while (re-search-forward ";;;[...@]*@@ \\([^<>]*\\)" nil t) (message "matched %s" (match-string-no-properties 1)) (replace-match (format ";;; @@ %s" (spaces-to-underscores (match-string-no-properties 1)) (match-string-no-properties 1 (write-file target nil)) (kill-buffer html))) ___ 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] fontification and icon issues
A couple of issues: 1. org-fontify-whole-heading-line and org-startup-indented seem to conflict with one another. See screenshot: http://dto.github.com/images/folio.png The headline background color extends to the next line. The problem goes away when you set org-startup-indented to nil and M-x org-mode. BTW org-startup-indented is cool. 2. using add-text-properties to specify a display property (or even just a face) for any part of an org headline text kills the fontification of the rest of the text (TODO keyword and leading stars unaffected.) I'm trying to use font-lock-add-keywords to display the images. Maybe I should use overlays instead? ___ 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] orgstruct-mode keybindings don't work
I'm using orgstruct-mode in my elisp files (i.e. turn-on-orgstruct is in the emacs-lisp-mode-hook.) Local value of outline regexp is: ";;;\\(;* [^ ]\\|###autoload\\)\\|(" None of the orgstruct commands/keybindings work; C-h k shows that M-right has the org-hijacker command bound to it, but executing it just does the normal M-right action (which is forward-word on my emacs) No repositioning of point (i.e. further into the headline) helps at all. Trying M-up or M-down gives "this key has no function outside structure elements" even when in a headline. Am I doing something wrong? M-x emacs-version gives: GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, X toolkit) of 2007-12-10 on pod ___ 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] Org Radio
I'm writing an add-on for Org (again!) This one is called radio.el. It lets you annotate files (or even individual lines within files) with arbitrary org subtrees. This program is very preliminary, but it does work, and I'd be interested to hear people's thoughts. I have an audio-related application in mind that I'll show you later this week---adding tags and todo items to audio files, and even annotating timespans within audio files. Download radio.el from http://emacs-ontology-project.googlecode.com/svn/trunk/radio.el ___ 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] my GTD setup
Hello folks, I decided to finally sit down and read up on GTD and implement a simple setup for Org. But instead of writing a big article about GTD and org-mode, I have decided to add notes and paste my config. Not very complicated, but I'm trying to keep my GTD setup simple so that I will actually stick with it and get used to the process. Enjoy! ;;; org-gtd.el --- dto's org-mode configuration for GTD ;; Copyright (C) 2007 David O'Toole ;; Author: David O'Toole(require 'org) <[EMAIL PROTECTED]> ;; Keywords: tools ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. ;; This file is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Commentary: ;; There are several articles about using GTD (GettingThingsDone) with ;; OrgMode. I'm publishing mine as an Emacs Lisp source ;; file. ;; This is a very basic example org-and-gtd setup. It's also my real ;; configuration, so you can load it yourself or just take a few ;; pieces. ;;; Code: (require 'org) (require 'remember) ;; I have a nice Wacom tablet, so I like to use the mouse. Org-mouse ;; adds various clickable menus to org-mode constructs. (require 'org-mouse) ;; I want files with the extension ".org" to open in org-mode. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) ;; I keep almost everything in one big org file. (defvar org-gtd-file "~/gtd.org") ;; I open my gtd file when I hit C-c g (defun gtd () "Open the GTD file." (interactive) (find-file org-gtd-file)) ;; Some basic keybindings. (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cr" 'org-remember) (global-set-key "\C-cg" 'gtd) ;; This seems like a good basic set of keywords to start out with: (setq org-todo-keywords '((type "TODO" "NEXT" "WAITING" "DONE"))) ;; Some projects need their own org files, but I still want them to ;; show up in my agenda. (defvar org-gtd-other-files) (setf org-gtd-other-files (list "~/eon/eon.org")) (setf org-agenda-files (cons org-gtd-file org-gtd-other-files)) ;; When I'm using org to track issues in a project, I use these ;; keywords on a file-local basis: ;; #+SEQ_TODO: TODO | DONE ;; #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED ;; #+SEQ_TODO: | CANCELLED ;; The lisp version is: ;; (setq org-todo-keywords '((sequence "TODO" | "DONE") ;;(sequence "REPORT" "BUG" "KNOWNCAUSE" | "FIXED") ;;(sequence | "CANCELLED"))) ;; Easy basic searches. Get a quick view of nextactions, etc (setq org-agenda-custom-commands '(("w" todo "WAITING" nil) ("n" todo "NEXT" nil) ("d" "Agenda + Next Actions" ((agenda) (todo "NEXT") ;; I use org's tag feature to implement contexts. (setq org-tag-alist '(("STUDIO" . ?s) ("COMPUTER" . ?c) ("MAIL" . ?m) ("HOME" . ?h) ("FIELD" . ?f) ("READING" . ?r) ("DVD" . ?d))) ;; I like to color-code task types. (setf org-todo-keyword-faces '(("NEXT" . (:foreground "yellow" :background "red" :bold t :weight bold)) ("TODO" . (:foreground "cyan" :background "steelblue" :bold t :weight bold)) ("WAITING" . (:foreground "yellow" :background "magenta2" :bold t :weight bold)) ("DONE" . (:foreground "gray50" :background "gray30" ;; I put the archive in a separate file, because the gtd file will ;; probably already get pretty big just with current tasks. (setq org-archive-location "%s_archive::") ;; Remember support. This creates several files: ;; ;; ~/todo.org Where remembered TODO's are stored. ;; ~/journal.org Timestamped journal entries. ;; ~/remember.org All other notes ;;
Re: [Orgmode] Org Radio
Hello Bastien, I really like the region idea. However it could be very tricky to implement. The annotations in the radio file would be matched to regions in the target file. So presumably we save the region's coordinates in the radio file along with its annotation. We can use markers and overlay properties to keep these data consistent in the face of changes that happen in an Emacs buffer, but if a file can change outside Emacs (i.e. annotating a shared file in version control) then we have a problem, because (in the new model you are suggesting) there was never anything in the file itself to indicate which regions go with which annotations. That model is interesting because it means you can annotate files without changing them (i.e. notes on /etc). But I don't see how to keep the radio file from breaking. But maybe I am missing an obvious solution---can you give more details on the GPLv3 thing you are referring to? --dave From: Bastien <[EMAIL PROTECTED]> Subject: Re: [Orgmode] Org Radio Date: Sat, 22 Dec 2007 19:49:34 +0100 > Hi David, > > "David O'Toole" <[EMAIL PROTECTED]> writes: > > > I'm writing an add-on for Org (again!) > > > > This one is called radio.el. It lets you annotate files (or even > > individual lines within files) with arbitrary org subtrees. > > Great! I played with it a bit, and I like the general idea. I thought > about doing something similar a while ago, because the one thing I lack > in Emacs is the ability to take notes against one particular file and to > see from within the file if there are notes attached to it... > > Maybe one direction for further improvements: I don't really like the > glyph ":>". I would prefer that taking notes is done against a region > and that the whole region get overlayed when you activate radio-mode (or > whatever mode it could be.) > > Remember the GPLv3 comment process and the way comments were overlined. > Turning your mode on could overline regions that are annotated, and > those overlined regions could link to the note in the attached Org > file... > > Does this fit with your use of the tool ? > > -- > Bastien ___ 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: my GTD setup
Hi Ivan, > Hi David, thanks for sharing your setup. Could you, please, fix mew so > that it does not wrap your lisp? I find it unreadable. Certainly! I just got started with Mew so I am still configuring. > Do you know there is a book called "Getting Things Done" ? I suggest you > buy it ;) > > I have not finished it, but I don't think reading stuff on the 'net is > a substitute to reading the original book. My two cents. I think my mom has a copy, I will try to borrow hers... ___ 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] [OT] org-musicians :-)
> Weird stuff this, but perhaps linux/emacs/gtd does attract a certain > sort of person (geek musicians ?) ? I'm also a musician (mainly jazz > pianist these days). Heh, I am also one of those linux/emacs/gtd music geeks :-) Here is a song from our band: http://dto.twu.net/thedivinepersonality.ogg > Anyway, can I wish you all a great Christmas as well, and say a big > thank you to Carsten for the enormous effort and dedication he puts into > org-mode. Also, to others like Bastien for picking up some of the > org-mode development and running with it. Fantastic stuff. Happy Holidays, orgmoders! ___ 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] Announcing Worg (Web-Org)
Hi Bastien, Now that the holidays are over, I am back to hacking. I'd like to write some org-modematerial (perhaps on GTD, perhaps other stuff) and maybe it would make sense to contribute my org-radio annotator thing to the repository (if anyone is interested). On 1/7/08, Bastien <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm pleased to announce "Worg" (say "hello Worg!"). Worg is an attempt > to implement distributed editing of .org files. The purpose is: > > 1. to edit .org files together > 2. to have a nice user-contributed website around Org, GTD, planning > 3. to see whether we can really *share tasks* over the web with Org > > The Worg website is the output of the .org files. Browse it here: > > http://www.cognition.ens.fr/~guerry/worg/ > > The git repository of .org files lives here: > > http://repo.or.cz/w/Worg.git > > Anyone is welcome to contribute. If you would like to do so, here are > the first steps you need to go thru (ask for help): > > 1. create a SSH key > 2. create a user on repo.or.cz (and tell me your username) > 3. install git > 4. pull the Worg repository somewhere on your disk > > All this doesn't take very long and is explained here: > > http://www.cognition.ens.fr/~guerry/worg/worg-git.html > > Once you've done that, here is a typical sequence of wor^D^Dfun: > > 1. go to your Worg directory > 2. pull any changes made by others (~$ git pull) > 3. write tutorials and code and whatever you want > 4. commit your changes (~$ git commit -a -m "My changes") > 5. push your changes (~$ git push) > > That's it. You can even work offline safely, pulling and pushing will > take care of any conflicts as simply as possible. > > So instead of feeling lazy about some tutorial you want to write, just > write the beginning of the tuturial, and add a new task for someone: > > ** TODO Please continue my tutorial [[file:mytutorial.org][here]] > > If you add the ~/org/Worg/worg-todo.org file to your agenda files, then > you will see this task sneaking into YOUR list of tasks. I know, tasks > are very intimate things, but YOU define the way you want Worg-related > tasks to be displayed in your agenda views. > > There is way too much knowledge and code snipets living on this mailing > list, I guess Worg would help beginners find their way thru Worg, and > others find a more central place where to elaborate ideas and code. > > Enjoy, > > -- > Bastien > > > ___ > 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] Re: Announcing Worg (Web-Org)
http://dto.mamalala.org/eon/radio.el I haven't worked on it in a little while, as I've been hacking on Eon and org-publish.el. But, some people may find it of interest. I do intend to use it for audio, because it allows you to annotate binaries as well (by making a separate little note file.) On Jan 16, 2008 4:48 AM, Phil Jackson <[EMAIL PROTECTED]> wrote: > David, > > Bastien <[EMAIL PROTECTED]> writes: > > > "David O'Toole" <[EMAIL PROTECTED]> writes: > >> Now that the holidays are over, I am back to hacking. > > > > Good to hear. I'm just back from an email blackout. > > [...] > > >> contribute my org-radio annotator thing to the repository (if anyone > >> is interested). > > > > Sure! Normaly you should be able to commit to Worg's repository. > > [...] > > > - I think Phil and you could put your effort in common, since > > org-annotate-file.el is scratching at the same itching need. > > I must have skipped over radio thinking it was something to do solely > with audio :( I went back to your original announcement and it sounds > like we really are doing the same thing. I can't actually find org-radio > (the link to the repo doesn't work anymore) to see how much better your > code is than mine and or sabotage the repository :) > > Happy to swap/lend/steal/merge anything you think we should or we could > go into a bitter competition involving spies, bribery and litigation. > > Phil > -- > Phil Jackson > http://www.shellarchive.co.uk > ___ 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] org-publish.el v1.81 is out
I have a new version of org-publish.el, with an experimental new feature called "project templates." It helps you factor out common parts of org-publish projects, which is useful when you have project directories that have subproject directories that also need to be published. There's no manual entry, but there are plenty of docstrings. To get an overview of the new functionality, visit org-publish.el (URL below) and look for the section "Project templates". enjoy! http://dto.mamalala.org/alpha/org-publish.el ___ 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] Re: Announcing Worg (Web-Org)
It occurs to me that I probably shouldn't put radio.el in the worg repo, because I maintain it as part of Eon, and other parts of Eon will depend on it (in particular, the sound audition/annotation thing i described.) But the URL i gave (http://dto.mamalala.org/eon/radio.el ) is the standard location for the file (it's an hourly svn update), and I'm happy to take feature requests / bug reports on this list. On Jan 16, 2008 9:36 AM, David O'Toole <[EMAIL PROTECTED]> wrote: > http://dto.mamalala.org/eon/radio.el > > I haven't worked on it in a little while, as I've been hacking on Eon > and org-publish.el. But, some people may find it of interest. I do > intend to use it for audio, because it allows you to annotate binaries > as well (by making a separate little note file.) > > > On Jan 16, 2008 4:48 AM, Phil Jackson <[EMAIL PROTECTED]> wrote: > > David, > > > > Bastien <[EMAIL PROTECTED]> writes: > > > > > "David O'Toole" <[EMAIL PROTECTED]> writes: > > >> Now that the holidays are over, I am back to hacking. > > > > > > Good to hear. I'm just back from an email blackout. > > > > [...] > > > > >> contribute my org-radio annotator thing to the repository (if anyone > > >> is interested). > > > > > > Sure! Normaly you should be able to commit to Worg's repository. > > > > [...] > > > > > - I think Phil and you could put your effort in common, since > > > org-annotate-file.el is scratching at the same itching need. > > > > I must have skipped over radio thinking it was something to do solely > > with audio :( I went back to your original announcement and it sounds > > like we really are doing the same thing. I can't actually find org-radio > > (the link to the repo doesn't work anymore) to see how much better your > > code is than mine and or sabotage the repository :) > > > > Happy to swap/lend/steal/merge anything you think we should or we could > > go into a bitter competition involving spies, bribery and litigation. > > > > Phil > > -- > > Phil Jackson > > http://www.shellarchive.co.uk > > > ___ 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] thousands of Invalid face attribute messages
When I open an org-mode file I start to get these errors in the message-buffer. Debug-on-error does not seem to work because it's apparently happening during redisplay. Invalid face attribute :bold t [1133 times] I removed all instances of :bold t from my color theme file, so I don't think it's my code. This is with current CVS HEAD. ___ 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] blorg users?
I've abandoned my old program "org-blog.el" and have started to set up Bastien's "Blorg" software. But there seems to be a lot of templates to customize, and I also have to come up with styles. Are there any other blorg users out there who would share their configs and templates with me, and maybe I could piece together a style? I promise to tweak everything and change the colors so that it won't look too much like your site. what I'm mainly hoping for is to borrow someone's layout, and then do my own color scheme. I also promise to release my theme back to the community for further copying. Any thoughts? ___ 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] org-publish
I have some ideas for changes to org-publish. I am helping someone set up a content-heavy site using Emacs and Org-Mode, and we ran into several problems that I would like to fix. We have workarounds in place but these immediately suggested interesting fixes. For example it doesn't seem possible to publish to .PHP files but maybe I missed something. I need to reread the code because there seem to have been many changes since I last looked at it. Furthermore it did not seem possible to control :auto-preamble and :auto-postamble on a per-file basis (without setting up a special project just for that one file and using include/exclude.) Anyone mind if I make some changes and send a patch? Is there a more recent version than the one in CVS that i should begin with? ___ 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] HTML export problems
The first paragraph before any heading is exported, but without surrounding P paragraph tags; the remaining paragraphs (whether before other headings, or after those headings) all have P tags and this is messing up the styling. I'm using org-version 6.06b. #+OPTIONS skip:nil is on. ___ 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: HTML export problems
Specification conformance is beside the point, it is still a bug. We are unable to properly style this first paragraph because it has no P tag, and therefore the styles that apply to the P tag in our css don't work. On Sat, 2008-08-23 at 13:17 -0700, Jesse Alama wrote: > David O'Toole <[EMAIL PROTECTED]> writes: > > > The first paragraph before any heading is exported, but without > > surrounding P paragraph tags; the remaining paragraphs (whether before > > other headings, or after those headings) all have P tags and this is > > messing up the styling. I'm using org-version 6.06b. > > > > #+OPTIONS skip:nil is on. > > Perhaps surprisingly, that is valid XHTML 1.0 Transitional: > > Big Header > > Blah, blah. > > A paragraph unlike the previous one. > > I think that is malformed according to XHTML 1.1. > > Jesse > ___ 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] orgmode and physical fitness training
Recently I hired a personal trainer to manage my strength training program. There is a lot of data to keep track of: 1. timestamped records of what I eat --- these are reviewed by my trainer and I want to go back and annotate things that i should cut out. It will also be useful to look these up later for meal ideas. 2. appointments with my trainer 3. flexible "appointments" where I plan to go to the gym at a certain hour... is there any way to get org to send SMS messages to my phone? 4. payments due to the gym and trainer 5. other spending (items like gloves, shoes) 6. my weight, measurements, and body fat percentage 7. medications and/or supplements 8. sleep log (i have issues with my sleep cycle and this is very important for recovery after exercise.) I'd like to use org-mode to increase my grasp of the situation and measure my progress objectively. Does anyone else here use org-mode for fitness and/or health tracking? I would be interested to hear people's stories or suggestions. I'm guessing I should use the spreadsheet feature for the weight/measurements/bodyfat stuff. So I will have to finally learn that part of org :) I'll try to hammer out my own configuration and post any relevant snippets. ___ 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] RE: orgmode and physical fitness training
I've started a basic "training.org" file and added some data. So far I can get a nice columns view of my weight and body-fat percentage. There is much more to be done (in particular tracking poundages) but perhaps others will have responses or suggestions. I'll continue posting tidbits as I move more of this to org-mode. #+TAGS: workout food trainer payment equipment supplements #+COLUMNS: %25ITEM %weight %bodyfat %TODO %TAGS * <2008-09-26 Fri> :PROPERTIES: :weight: 266 :bodyfat: 31.0 :END: * <2008-10-08 Wed> :PROPERTIES: :weight: 261 :bodyfat: 29.7 :arm: 14.75 :waist: 47.5 :chest: 50.25 :hips: 47.25 :leg: 25.5 :END: * <2008-10-16 Thu> :PROPERTIES: :weight: 263 :END: ** <2008-10-16 Thu 08:30> :workout:trainer: cardio, pushups, situps, russian twist, preacher curls (what else to write down here?) notebook? ** <2008-10-16 Thu 13:12> :food: 1 can tuna fish + 2 tbsp mayo + 2 tbsp relish + 4 slices lo-carb (8g/slice) bread 1 glass skim milk 1 slice cheddar cheese 1 coffee 1 handful cashews (am i eating too much fat?) ** <2008-10-16 Thu 16:26> :food: 1 milkshake (2 cups 2% milk, 1/4 cup yogurt, 1 ripe banana, 2 tbsp peanut butter) 2 slices beef bologna * <2008-10-17 Fri> ** <2008-10-17 Fri 03:36> :food: 1 slice lo-carb whole wheat bread + 2 tbsp peanut butter 2 handfuls cashews 2 fish filets 1 bowl raisin bran ** <2008-10-17 Fri 08:47> :food: 1/2 cup cottage cheese ** <2008-10-17 Fri 11:46> :food: 3 fried eggs (with 1 tbsp olive oil) 1 handful cashews ** <2008-10-17 Fri 14:09> :food: 1 glass 2% milk + 1 teaspoon flax oil (read about this in a book? 3 slices ham 1 slice sharp cheddar cheese ** <2008-10-17 Fri 17:02> :food: 1 glass 2% milk 1 slice lo-carb whole wheat bread + 2 tbsp peanut butter 1 spinach salad + 1/2 tbsp olive oil + 2 tbsp balsamic vinegar * Scheduling ** TODO Discuss solo workout scheduling :trainer: ** TODO Figure out org recurring tasks ** TODO Workout:workout:solo: SCHEDULED: <2008-10-18 08:30 Sat> ** TODO PT Session:trainer:workout: SCHEDULED: <2008-10-21 Tue 08:30> ** TODO PT Session:trainer:workout: SCHEDULED: <2008-10-23 Thu 08:30> ** TODO Pay $400.00 :payment: DEADLINE: <2008-10-23 Thu> * Tasks ** DONE buy flaxseed oil and fish oil CLOSED: [2008-10-17 Fri 14:13] ___ 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] Adapting org-mode to my needs
Hi folks. I was a heavy planner.el user for about 2 years, then switched to howm-mode for about a year, then switched back to Planner, and have finally decided to seek a middle ground. In my view, Org-mode combines about 98% of everything I liked from both Planner-mode and Howm-mode. I'm already just about sold! This email is about that other 2 percent :-) as I would like to adapt Org-mode to my needs. One of the main things I have used Planner for is to publish a website from my notes. I see that org makes nice html output from a given page, but I have some questions about its configurability. 1. Is there a way to completely suppress the page header, or alter its contents (for example, not listing author and date at the top of all pages). Planner allows configurable html headers and footers. I'd rather just have the title at the top, and put these things at the bottom. I'd also like to put a set of common links across the top of the page, as a sort of menubar, like many sites have. 2. I want to publish a set of interlinked, related pages as a "project." I think it would be easy enough for me to write an elisp function that runs through a list of *.org files I want to publish, publishes each one in turn, and then uploads each file to my site via Tramp. (This would approximate the way Planner publishes my stuff. It would help if org would let you specify the folder that html output is to go in, and if it allowed Tramp URLs.) However, would inter-page links work? In Planner, the link [[pagename]] takes me to the file "pagename.muse". Then when the pages are published to html, it becomes a link to "pagename.html" so that the pages link together correctly in both Emacs buffers and in the web browser. What about links to other external files? I have the following directory structure in my Planner: /home/dto/Plans(my planner files) /home/dto/e(e-scripts, my *.el that i've written, and other publishable attachments) I can make a link to [[../e/thisfile]] and as long as I replicate the same directory structure on the webserver, the links resolve correctly once the files are published to html. This would seem crucial to my publishing a whole website of related pages using org. How would I go about making this work in org? 3. Planner/muse allow image links. It will actually put the image in the buffer for you, so long as it can find the file. 4. In howm-mode, one doesn't need to specify an explicit list of pages to be searched; instead you give it a folder and everything in that folder counts as a page. This makes it easy to make new pages/topics (whereas in org it seems like I would have to add them manually to the list.) This isn't a crisis, as I can always just write a script to update the list based on what's in the folder (and share the script so that other org users can take advantage.) 5. Is there a way to get TODO etc to publish as something besides ? Let me know if I can help add these features to Orgmode. I would be happy to help contribute changes/solutions if a developer can point me in the right direction. I'm interested to hear your thoughts. Thank you. BTW, org is great!!! -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] font-locking TODO in agenda view
Hi again Org folks! 1. I'm wondering about the font-locking in the Agenda view when TODO items are scheduled for a particular day (or even when TODO items are included via ...include-all-todo variable.) I can't get them to font-lock, which means I have no color-coding of which tasks are completed and which still remain to be done. Of course I can see the red and green just fine when in the actual .org file, but it's important for me to see the colors in the agenda view (otherwise the agenda doesn't have that at-a-glance feeling.) I've got org-fontify-done-headline set to "t" as well. No effect. When a TODO entry has "SCHEDULED:" in front of the timestamp, then it shows up with face org-scheduled-today. But so do DONE entries, so they look the same and once again I'm without the at-a-glance feel. 2. I would like to browse through all open todo's and "pluck" items for today by hitting > (which should move timestamp to today.) But it says this isn't allowed in "todo-type agenda view". Is there another way I can do this? 3. When should I use "SCHEDULED:" for a TODO entry? Sorry for my horrible newbie questions. But I find this a quite fascinating piece of software. -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Adapting org-mode to my needs
My apologies if this is a double-posting; for some reason I'm having trouble sending emails to this list. (Ops, perhaps you can help out?) . and now for the message itself. I was a heavy planner.el user for about 2 years, then switched to howm-mode for about a year, then switched back to Planner, and have finally decided to seek a middle ground. In my view, Org-mode combines about 98% of everything I liked from both Planner-mode and Howm-mode. I'm already just about sold! This email is about that other 2 percent :-) as I would like to adapt Org-mode to my needs. One of the main things I have used Planner for is to publish a website from my notes. I see that org makes nice html output from a given page, but I have some questions about its configurability. 1. Is there a way to completely suppress the page header, or alter its contents (for example, not listing author and date at the top of all pages). Planner allows configurable html headers and footers. I'd rather just have the title at the top, and put these things at the bottom. I'd also like to put a set of common links across the top of the page, as a sort of menubar, like many sites have. 2. I want to publish a set of interlinked, related pages as a "project." I think it would be easy enough for me to write an elisp function that runs through a list of *.org files I want to publish, publishes each one in turn, and then uploads each file to my site via Tramp. (This would approximate the way Planner publishes my stuff. It would help if org would let you specify the folder that html output is to go in, and if it allowed Tramp URLs.) However, would inter-page links work? In Planner, the link [[pagename]] takes me to the file "pagename.muse". Then when the pages are published to html, it becomes a link to "pagename.html" so that the pages link together correctly in both Emacs buffers and in the web browser. What about links to other external files? I have the following directory structure in my Planner: /home/dto/Plans(my planner files) /home/dto/e(e-scripts, my *.el that i've written, and other publishable attachments) I can make a link to [[../e/thisfile]] and as long as I replicate the same directory structure on the webserver, the links resolve correctly once the files are published to html. This would seem crucial to my publishing a whole website of related pages using org. How would I go about making this work in org? 3. Planner/muse allow image links. It will actually put the image in the buffer for you, so long as it can find the file. 4. In howm-mode, one doesn't need to specify an explicit list of pages to be searched; instead you give it a folder and everything in that folder counts as a page. This makes it easy to make new pages/topics (whereas in org it seems like I would have to add them manually to the list.) This isn't a crisis, as I can always just write a script to update the list based on what's in the folder (and share the script so that other org users can take advantage.) 5. Is there a way to get TODO etc to publish as something besides ? Let me know if I can help add these features to Orgmode. I would be happy to help contribute changes/solutions if a developer can point me in the right direction. I'm interested to hear your thoughts. Thank you. BTW, org is great!!! -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] font-locking TODO in agenda view
Carsten Dominik <[EMAIL PROTECTED]> writes: > TODO items are not fontified currently in the agenda buffer, that is > correct. Maybe they should? Mayb I should make the TODO red This would be perfect! > The entire entry does get green if you switch an item from TODO to > DONE, using the "t" key. Maybe there's something wrong, but this doesn't happen for me. Just tested it again. Text properties show there is no face on that line. When I press "l" to get time grid for today, it does show completed tasks in green when log mode is on, but only for the "Closed:" lines in the time grid. > This is something different. It governs if, in an org-mode buffer, > changing TODO to DONE should only change the coloring of the keyword, > or the coloring of the entire line. Ok, gotcha. > But I will put this on the things I will change: Make it possible to > schedule a TODO item for today by pressing > on it. Thank you! -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Adapting org-mode to my needs
Carsten Dominik <[EMAIL PROTECTED]> writes: > If this is 2%, then you must make heavy use of org-mode. :-) Heheheh :-) actually I am only using org-mode on a test basis, with an eye toward using it as my primary organizer soon. I meant that org-mode seems to do 98% of what I am currently getting out of planner, and that the 2% is just a few functions/tweaks that make it possible for me to configure org-mode in a way that will make me happy :-) Then i will of course share my tweaks and configurations so that others can do what I'm doing with it. I want to switch because org-mode seems to have a much cleaner conceptual design, and because its modeling of workflow seems more configurable and more sophisticated. All I have to do is get it to publish to html the way I like it, and I'm sold! > If I understand you correctly, you can and want to do Lisp coding > yourself? Yes. I wrote a small html-export system for howm mode. The source is available at my old website: http://dto.twu.net/howm-blog.el It manufactures pages that look like this: http://dto.twu.net/HowmTutorial.howm.html You can use this to check my coding style :-) > I guess we could have variables for the page header and footer that > will be inserted there, with place holders for author name, date, and > title. I recommend the customizable variable approach for headers/footers, rather than "header.html" inclusion, because: 1. it is consistent with author, title etc being stored in customizable variables, and then everything can be set in .emacs 2. people can always read contents of header.html into org-html-header if they really want to keep their headers in a separate file > This is trivial to implement. I guess the easy way would be to let > org-mode export to the current directory as it does now, and then copy > the file by whatever means to a destination. > > What do you mean by TRAMP urls? Tramp is the part of emacs that allows transparent editing/reading/writing of remote files/directories. syntax: "/protocol:[EMAIL PROTECTED]:path/" My planner-publishing-directory is specified as "/ssh:[EMAIL PROTECTED]:~/html/wiki/" Functions like write-file will automatically handle URLs like this when Tramp is enabled, i.e. writing a file to a remote host "just works". This is especially convenient for me because I have a free account that has scp and ftp disabled. Tramp writes the files by logging into the shell on the remote machine via ssh, and shoving the uuencoded files through the ssh connection. Works as well as ftp! I can always just re-read the file from where org-mode puts it on the disk, but if org-mode allowed you to specify the output directory, then one could publish files to your webserver directly from emacs, by specifying the right Tramp URL. Your code wouldn't have to know anything about tramp. > Inter-file links work like URLs, for example [[file:pagename.org]], so > all you need to do is to add the "file:" handle in front of the file > name, and you need to specify the extension explicitly. Slightly more > inconvenient than in planner, but easy enough. It would not be hard > to implement a switch in the exporter that would convert all "file:" > links to .org files into "html:" links to an html file. What about something like [[org:pagename]] to specify links to another file? This would allow people to still use [[file:pagename.org]] in the case where they want web users to access the .org source of a page. > Other external files are just as easy: [[file:../e/thisfile]]. oh. cool. > Org-mode has links to images as well, and the HTML output will contain > the link. I would have to check if the handling uses absolute or > relative file paths, but that is also easily modified. Inlining > images into an Emacs buffer is something I rarely find useful (the > most notable exception being preview-latex). You're probably right here :) though I plan to write an image-heavy tutorial soon, possibly using org-mode, and it might help if the images were inline. Nonetheless this isn't crucial. > I would propose the following strategy. You start by creating a > project, something like org-publish.el. In that you define what is > needed to do a publishing project, i.e. variables holding the root > directory of a project, the directory where to publish the files, and > anything else. I guess you can let yourself guide by how Emacs wiki > and Muse do these things. > > Then you write commands to visit each org-file in that directory in > turn, call the exporter and ship off the resulting file to whatever > destination you desire, along with any other non-.org files in the > project directory. > > I would make the required hooks in the existing HTML exporter. As far > as I can see this mainly means honoring relative path specifications > correctly, and changing links to .org files from file: to http:. > > You also think up a way to define the header and footers for these new > files, and I would provide way
Re: [Emacs-orgmode] Re: font-locking TODO in agenda view
Bizarrely enough, it fails with wget, but works when pasted in Mozilla... wget http://www.astro.uva.nl/~dominik/public_html/Tools/org/org-testfaces.zip --18:19:57-- http://www.astro.uva.nl/~dominik/public_html/Tools/org/org-testfaces.zip => `org-testfaces.zip' Resolving www.astro.uva.nl... 146.50.4.44 Connecting to www.astro.uva.nl|146.50.4.44|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://staff.science.uva.nl/~dominik/public_html/Tools/org/org-testfaces.zip [following] --18:19:57-- http://staff.science.uva.nl/~dominik/public_html/Tools/org/org-testfaces.zip => `org-testfaces.zip' Resolving staff.science.uva.nl... 146.50.4.55 Connecting to staff.science.uva.nl|146.50.4.55|:80... connected. HTTP request sent, awaiting response... 404 18:19:58 ERROR 404: (no description). Carsten Dominik <[EMAIL PROTECTED]> writes: > On Apr 19, 2006, at 19:05, J. David Boyd wrote: > >>> This works now in the new test version 4.24b >>> >>> http://www.astro.uva.nl/~dominik/public_html/org/org-testfaces.zip >>> >> >> I can't download the update anymore. > > There is a typo in the address, my apologies. > > http://www.astro.uva.nl/~dominik/public_html/Tools/org/org-testfaces.zip > > - Carsten > > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] font-locking TODO in agenda view
> This works now in the new test version 4.24b > > http://www.astro.uva.nl/~dominik/public_html/org/org-testfaces.zip > Works great! Thanks so much. I should note, that it only font-locks TODO/DONE entries that are SCHEDULED: . Maybe this is intentional, I don't know. I take it that SCHEDULED is the appropriate way to schedule a task for a given day, i.e. this: ** TODO Shave SCHEDULED: <2006-04-19 Wed> Instead of this: ** TODO Make coffee <2006-04-19 Tue> which just puts a timestamp in, but no SCHEDULED. -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Adapting org-mode to my needs
;; Hi Carsten. In this email you'll find my thoughts on improving the ;; html export features of org-mode. ;; Contents: ;; + data structure for publishing configuration info ;; + suggestions on how to get this data into org-export ;; functions ;; + other suggestions I consider really important ;; It will be very easy for me to write a publish-project function ;; that converts all org files to html via your code, and also uploads ;; auxiliary images etc. to create an entire site. I just want to work ;; out our data exchange details first :-) ;; I would like to contribute this and more, as I think of stuff. I'd ;; be happy to do the required paperwork with the FSF. ;; Read on and let me know what you think. 1. The following is an example of a data structure that users ;; could use to define a set of publishing configurations for an ;; entire folder full of org files. (setq org-publish-config-plist (list :orgfiles-dir "~/org" :html-dir "/ssh:[EMAIL PROTECTED]:~/html" ; we don't actually customize the full html header here. ; it would need to have %s %s %s in it. instead we let ; org-publish-as-html fill in the header its own way, and ; allow user to customize "preamble/postamble" (see ; below.) this way people can add menu across the top, or ; sidebar full of links, or javascript etc, to a group of ; related pages all at once, without messing with ; inserted just after tag :html-preamble "my-preamble-string" ; inserted just before tag :html-postamble "my-postamble-string" ; allow user to turn off the printout of author, email, ; date at the top of pages. I really want this. :auto-preamble nil ; the following are inserted into the right places in the ; real html header by org-publish-as-html :style "my-css-string" :language "en" :author user-full-name :email user-mail-address ; other options that should over-ride global variables ; when publishing (of course, options set per orgfile ; should override everything.) :headline-levels 3 :toc nil ; can you think of more? )) 2. How to get the above data into the HTML exporter of Org-mode: ;; The function "org-export-as-html" should accept an optional plist ;; like the one above, and should honor the values in it (subject to ;; per-file override of course). ;; ;; You can retrieve the values like this: ;; ;; (plist-get org-publish-config-plist :style) ;; (plist-get org-publish-config-plist :html-preamble) ;; see also (info "(elisp)Other Plists") ;; ;; It seems like most of the changes would then be in the let* section ;; of org-export-as-html, simply checking whether the user has set a ;; given property in the plist, before assigning the current default. ;; ;; See below for an example of such a change. 3. Other comments on org-export-as-html: ;; + Setting of "filename" should allow folders other than the same ;; folder as the orgfile. It's a sensible default to use the same ;; folder, but it should be configurable by respecting :html-dir ;; from the org-publish-config-plist. ;; reasons: i do not want html files in my org folder. grep would ;;find everything twice if I grep the folder. we should ;;be able to keep org files in the org folder, images in ;;../images, html in ../org-html if so desired. ;; in that case we'd change the line in the let* from: (filename (concat (file-name-sans-extension buffer-file-name) ".html")) ;; to something like (filename (let ((html-dir (plist-get org-publish-config-plist :html-dir))) (if html-dir (concat html-dir (file-name-sans-extension buffer-name) ".html") ;; this will work with TRAMP! (concat (file-name-sans-extension buffer-file-name) ".html" ;; + Default page title should be set to (file-name-sans-extension (buffer-name)) ;; instead of just (buffer-name) ;; reasons: Most people will have TOPIC.org, so the page title ;;should be TOPIC. (who really wants ".org" at the end of ;;a big page title? this is not a useful default and it ;;really surprised me the first time I saw .org at the end ;;of the page title. it looks like a website address.) Carsten Dominik <[EMAIL PROTECTED]> writes: > I would propose the following strategy. You start by creating a > project, something like org-publish.el. In that you define what is > needed to do a publishing project, i.e. variables holding the root > directory of a
Re: [Emacs-orgmode] Adapting org-mode to my needs
Looks good to me! Thank you for doing this. Once I have the updated version of org-mode, I will write and test my publishing functions (including something that manufactures an index of all the pages in a project, and possibly produces other reports.) I have some more thoughts on org-mode but I will send them a bit later today. Carsten Dominik <[EMAIL PROTECTED]> writes: > Hi David, > > I have drawn up a complete list of properties I would like to use for > the HTML extension: > > > | Plist-tag | Customization variable | ? > | Default | > |---++- > +---| > | :language | org-export-default-language| > | "en" | > | :headline-levels | org-export-headline-levels | > | 3 | > | :section-numbers | org-export-with-section-numbers| > | t | > | :table-of-contents| org-export-with-toc| > | t | > | :emphasize| org-export-with-emphasize | > | t | > | :sub-superscript | org-export-with-sub-superscripts | > | t | > | :TeX-macros | org-export-with-TeX-macros | > | t | > | :fixed-width | org-export-with-fixed-width| > | t | > | :tables | org-export-with-tables | > | t | > | :table-auto-headline | org-export-highlight-first-table-line | > | t | > | :style| org-export-html-style | > | "..." | > | :convert-org-links| org-export-html-link-org-files-as-html | > | t | > | :inline-images| org-export-html-inline-images | > | t | > | :expand-quoted-html | org-export-html-expand | > | t | > | :timestamp| org-export-html-with-timestamp | > | nil | > | :publishing-directory | org-export-html-to-directory | new > | "." | > | :preamble | org-export-html-preamble | new > | ""| > | :postamble| org-export-html-postamble | new > | ""| > | :auto-preamble| org-export-html-auto-preamble | new > | t | > | :auto-postamble | org-export-html-auto-postamble | new > | t | > | :author | user-full-name | > | user-full-name| > | :email| user-mail-address | > | user-mail-address | > > > If you agree I will go ahead and implement them. > > - Carsten > > -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Re: org-mode usage patterns
Hi Piotr, As a relatively new org user, I have been wanting to see a discussion of usage patterns and file structures. So, I'm glad you asked, and perhaps this will help get people talking. Here's a little about my org usage patterns. This isn't complete because I've only been using org less than a week. However, I have imported a fair amount of material into my orgfiles, from previous usage of Planner and Howm. So, I have had to make decisions about how to structure things. I keep one topic per file, called ~/org/Topic.org . All my org files are together in the ~/org folder. The filename is the default category for TODO items, so this is quite useful. Since I keep org-agenda-files list in alphabetical order, my tasks are grouped in alphabetical order by file when I look in the Global TODO list (C-c a t.) I have org-agenda-include-all-todo set to "nil". I don't like all the open tasks cluttering up my agenda. Instead, when I want to see a list of all open TODO, I use the Global TODO list. I don't put timestamps of any kind in a TODO until I'm ready to SCHEDULE it. I use C-c C-s to add a schedule timestamp. In this way, it's easy to use (C-c a t) to find open tasks to schedule, and easy to see what's scheduled for today with org-agenda (C-c a a). I mix tasks and notes. I often have ideas about a task or perhaps a phone number or address, so I put those under the TODO heading. For example if the headline says "TODO Implement feature X" I will often have several ideas about the shape of the feature, and possibly alternative implementation possibilities. I'll usually drop these in as subheadings to the TODO, but these aren't TODO items in themselves---the headlines are useful for organizing ideas, but it's usually too early at this stage to make the headings into TODO. Once the ideas and notes have coalesced into a more definite plan, the headings start to become TODOs. In addition, when writing a structured document with Org, I will use TODO headings simply to mark that a section needs filling in. When I want to really focus on a particular project that has multiple open TODOs, I hide the agenda buffer and just display the particular project's .org file, usually in OVERVIEW mode. This hides all the little notes, but shows all the TODO and gives me quick access to any part of the file. I try to keep TODO's in logical/temporal order when maintaining a .org file, so this view usually gives me an idea what the NEXTACTION should be. It's simple enough to navigate to that, and hit C-c C-s to schedule those for today. I use only TODO and DONE as keywords. I try to make todo items small enough so that they're either TODO or DONE. I never found much use for the "in progress" marking of Planner Mode. Who knows, this may change in the future. I haven't found as much use for Remember mode yet. I usually just add stuff where it needs to go, but perhaps when things are busier I will really want to be able to "braindump" to Remember.org and then file things away later. I have also thought about using Remember for journal entries / blogging (as described in the manual.) I haven't yet used Tags because I categorize things by placing them in the file for that topic. I have more to say on the subject of org usage, but I want to develop my ideas a little further first. "Piotr Zielinski" <[EMAIL PROTECTED]> writes: > Hi, > > It seems that different people use TODOs in different ways. For > example, I use TODOs at the very lowest possible level to indicate the > next action in a particular project. That said, I'd welcome some > hierarchical propagation of TODO, as it is with tags. One can imagine > using two kinds of todos: TODO and NEXTACTION. TODO would be attached > to (high-level) projects I'm currently interested in doing, whereas > NEXTACTION attached to the low-level nodes of the tree that correspond > to the next physical action to take. The agenda could be configured > in such a way to display only these NEXTACTIONs that have an ancestor > marked as TODO. Note that this is already possible with tags. Is it > sensible to make org.el treat TODOs as a any other tag? > > To make most of org-mode, I think it would be very useful to compare > how people actually use it. I'm sure I could learn a lot of useful > things from such an exchange, and would be surprised by the variety of > organizing structures people use. The best way to achieve that is > probably to post deprivatized sample parts of our .org files with a > short explanation. What place do you think is the best: this email > list? some wiki? something else? > > Piotr > > On 26/04/06, Carsten Dominik <[EMAIL PROTECTED]> wrote: >> >> On Apr 26, 2006, at 8:54, Christian Egli wrote: >> >> > On Tue, 2006-04-25 at 18:19 +0200, Frank Ruell wrote: >> >> The only thing I've missed was an option for items, which are >> >> fontyfied >> >> and checkable via some shortcut, but never ever show up in agenda (or >> >> rather clutter up your agenda
[Emacs-orgmode] [Announce] org-publish.el: configurable website publishing support for org-mode
Hi there org-moders, I've extended the HTML publishing support of Emacs Org-mode to allow configurable publishing of related sets of files as a complete website. My extensions thus far are collected in org-publish.el, and are used to upload and manage my entire site. org-publish.el can currently do the following: * Publish all one's org-files to html * Upload html, images, attachments and other files to a web server * Exclude selected private pages from publishing * Publish a clickable index of pages * Manage local timestamps, for publishing only changed files * Accept plugin functions to extend range of publishable content Much more functionality is planned, toward making org-mode a more general authoring solution as well as a great outliner and organizer. Special thanks to the org-mode maintainer, Carsten Dominik, for his ideas, enthusiasm, and cooperation. You can find org-publish.el at its homepage: http://dto.freeshell.org/notebook/OrgMode.html I welcome comments, suggestions, feedback, bug reports, feature requests, and so on. Thanks everyone! -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] global todo list: separators?
Is it possible to have horizontal rules separating the different categories in the Global TODO list? That would make it much easier for me to read when I am hunting for tasks to schedule. I'd like it to look like this: DiscreteMath: TODO Review through Ch. 2 of LADM EmacsConfig: TODO Reorganize and clean up file:../e/init.el EmacsConfig: TODO [#C] Configure gnus spam handling KarmaPod: TODO Fix problem with usb backup keys not working KarmaPod: TODO Outline pod construction tutorial KarmaPod: TODO [#C] Photograph the pod OrgMode: TODO [#A] Fix "Index.org has changed on disk" error OrgMode: TODO Draft manual chapter for org-publish OrgMode: TODO Publish e-scripts with basic fontifying OrgMode: TODO Blogging from a "blog.org" built from remember.el snippets OrgMode: TODO [#C] Post thoughts on org-mode vs planner WebSite: TODO Flesh out KarmaPod page WhitneyStreet: TODO Complete carpet-tiling lower foyer WhitneyStreet: TODO Paint kitchen WhitneyStreet: TODO Send email to ADM8211 mailing list Also, I would love to be able to hit > on one of these lines, to schedule it for Today. -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] HTML rendering of Gnus links
This is probably a nitpick :-) but mine render like this: Wouldn't it make more sense for them to render as E-Mail from Joe Smith RE: subject ? -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] org-timeclock.el
I was bored this morning, and decided to add basic support for timeclock.el to org-mode. My preliminary hack is available from: http://dto.freeshell.org/e/org-timeclock.el Supports only basic functions: M-x org-timeclock-in M-x org-timeclock-out Also automatically clocks out/finishes a task when you mark the currently clocked-in task as "DONE". (This can be easily turned off if you don't like it.) Future ideas: doing something interesting with timeclock-generate-report and org-publish.el :-) -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] org-mode issues i'm having
1. Links that target specific text in a file, do not work properly: - [[file:~/emacs/org-4.27/org.el::defcustom%20org%20after%20todo%20state%20change%20hook%20nil][file:~/emacs/org-4.27/org.el::defcustom org after todo state change hook nil]] - [[file:~/emacs/org-4.27/org.el::defvar%20org%20todo%20line%20regexp%20nil][file:~/emacs/org-4.27/org.el::defvar org todo line regexp nil]] The above were made with "C-c l" (org-store-link). When opening with C-c C-o, I expect it to locate point near the search text, but it doesn't. If the file is not being visited currently, it simply locates point at the beginning of the file. If the file is being visited, it doesn't move point. Am I missing something? 2. Remember support doesn't work properly. After hitting C-c C-c, the little "place your text in the outline tree" help comes up, and I can move the cursor a little, but I don't see ANY tree or text from the outline, just a blank window behind the help text. I'm using CVS emacs and configuring org like this: (add-to-list 'load-path "/home/dto/emacs/org-4.27") (load "org") (load "remember") (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) (define-key global-map "\C-cr" 'remember) (setq org-log-done t) (setq org-fontify-emphasized-text t) (setq org-fontify-done-headline t) (setq org-agenda-include-all-todo nil) (setq org-directory "~/org") (setq org-default-notes-file "~/org/Remember.org") (setq org-export-html-style "") (setq org-export-with-section-numbers nil) (setq org-export-with-toc nil) (setq org-reverse-note-order t) ;; note at beginning of file by default. (setq org-adapt-indentation nil) (setq remember-annotation-functions '(org-remember-annotation)) (setq remember-handler-functions '(org-remember-handler)) (add-hook 'remember-mode-hook 'org-remember-apply-template) ;; widen category field a little (setq org-agenda-prefix-format " %-15:c%?-12t% s") -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] error message when archiving last subtree in file
Copied: Subtree with 735 characters Pasted at level 1, with shift by -1 levels Wrote /home/dto/org/OrgMode.org_archive Cut: Subtree with 735 characters kill-line: End of buffer -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] publishing e-scripts with org-publish.el
I've added preliminary support for publishing e-scripts with org-publish.el. What are e-scripts? >From my webpage: "plain-text documents that contain commentary, executable emacs lisp hyperlinks, and specially marked segments of executable shell script code, meant to be triggered one at a time by the user (possibly after some customization." E-scripts are processed by eev-mode (http://angg.twu.net/#eev ) But anyway, the code is at: http://dto.freeshell.org/e/org-publish-escript.el It's still quite preliminary, and I'm not sure if any of you actually use eev-mode :-) but I find eev-mode quite useful and plan to share my knowledge about many tasks using e-scripts. eev-mode is a sort of IDE and front-end to the shell. org-publish-escript-to-html is a pluggable publishing function for org-publish, I intend to create a library of such functions to render many types of input files as smart HTML, so that people who write in diverse formats can publish their files as a coherent site. Note, this plugin publishes both the original source .e file, and the marked up .e.html file (and inserts a header with link to the original) so that people can download the raw non-html file. Example output of my org-publish-escript.el http://dto.freeshell.org/e/emacs.e.html http://dto.freeshell.org/e/dvd.e.html Oh, if you don't like the colors, you can set the :style keyword in your org-publish-project-alist. '("escripts" . (:base-directory "~/e/" :base-extension "e" :publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/e/" :publishing-function org-publish-escript-to-html So, has anyone tried out org-publish? -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] HTML formatting of * QUOTE headings
The actual quoted text renders nicely :-) but for some reason the word QUOTE is still showing up as a heading. Shouldn't it be considered a directive to the formatter and just disappear? I'm not sure why I would want a heading that says QUOTE in the outputted html. Can it be enabled for us to turn this off? -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Handling of inline images
Currently if you do this: [[file:path_to_image][Description]] the description seems to be thrown away and there seems to be no way to link to an image inline in one place, not inline in another place. I'd like to propose that when inline-images is on for a document, the following link: file:path_to_image result in inlining, whereas: [[file:path_to_image][Description]] not result in inlining, instead letting the text "Description" be a plain text link to the image. This way we could choose by the link type, whether the image is inlined. The reason is, most of the time I want inline images, but sometimes I want to post a large screenshot... -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] illustrated brief tutorial for org-mode
Hi all. I've made an illustrated tutorial for org-mode. This tutorial only covers the most basic features and only a few situations, but it is profusely illustrated with screenshots and could help new users get an idea of how org-mode looks and feels. It's meant as a sort of brief guided tour. http://dto.freeshell.org/notebook/OrgTutorial.org In other news, I am working on blogging support for org-publish. More news as events warrant... -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] fancier and less fancy export
I plan on continuing to write and support org-publish.el and its extensions. Because it was designed to be format-agnostic at both input and output stages (via plugin functions), I think it has a good chance of working with the XOXO stuff and other extensions people want to make. Furthermore, it currently publishes all my files, whether they're e-scripts, elisp code, or .org files. >From what I understand, it is not a trivial matter to get Muse publishing other markup formats than the one it was designed around. It's something of an overhaul for the next major version, not a few tweaks. Since muse until recently lacked support for nested bullet lists (which always drove me nuts) I am not holding my breath waiting for Muse to fully support Org files, upload attachments, and format other types of files, the way org-publish does. :-) Whereas, I think org-publish.el is already a "unified" org-mode exporting system. I've never had such an easy time authoring an entire website as when using org.el and org-publish.el, and I can speak from several years experience with planner, emacswiki, and muse. Org-publish.el does not currently support things like LaTeX output, but I have volunteered to work on it. Scott Otterson <[EMAIL PROTECTED]> writes: > Also, a general question: There's been discussion of adapting > muse-mode so that org-mode can eventually make use of its many export > capabilities. At that same time, we've got very interesting xoxo > export capability and the nice new code written by David O'Toole. > This is great stuff but to a new user, these multiple and somewhat > overlapping choices are bound to be confusing. Will all this good > code eventually get merged into a unified org-mode exporting system? -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Updated org-publish.el
I've released org-publish, version 1.45 today. You can download it from my little org-mode page: http://dto.freeshell.org/notebook/OrgMode.html This is mostly a bugfix release. Thanks all to everyone who reported bugs, you know who you are :-) --- List of user-visible changes since version 1.27: 1.43: Index no longer includes itself in the index. 1.42: Fix "function definition is void" error when :publishing-function not set in org-publish-current-file. 1.41: Fixed bug where index isn't published on first try. 1.37: Added interactive function "org-publish". Prompts for particular project name to publish. 1.34: Added force-publish option to all interactive functions. 1.32: Fixed "index.org has changed on disk" error during index publishing. 1.30: Fixed startup error caused by (require 'em-unix) -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Org-mode 4.29
I'm getting an error when I try to schedule a TODO item from the global TODO list using C-c C-s. I've pasted the backtrace below. Debugger entered--Lisp error: (wrong-type-argument stringp nil) re-search-forward(nil nil t) (and (eq elt (quote closed)) (re-search-forward org-closed-time-regexp nil t)) (or (and (eq elt ...) (re-search-forward org-scheduled-time-regexp nil t)) (and (eq elt ...) (re-search-forward org-deadline-time-regexp nil t)) (and (eq elt ...) (re-search-forward org-closed-time-regexp nil t))) (if (or (and ... ...) (and ... ...) (and ... ...)) (progn (replace-match "") (if ... ...))) (when (or (and ... ...) (and ... ...) (and ... ...)) (replace-match "") (if (looking-at " +") (replace-match ""))) (while list (setq elt (pop list)) (goto-char (point-min)) (when (or ... ... ...) (replace-match "") (if ... ...))) (let (beg end col list elt (buffer-invisibility-spec nil) ts) (org-back-to-heading t) (setq beg (point)) (looking-at (concat outline-regexp "\\( *\\)[^ \n]*")) (goto-char (match-end 1)) (setq col (current-column)) (goto-char (1+ ...)) (if (and ... ...) (narrow-to-region ... ...) (insert "\n") (backward-char 1) (narrow-to-region ... ...) (indent-to-column col)) (setq list (cons what remove)) (while list (setq elt ...) (goto-char ...) (when ... ... ...)) (goto-char (point-max)) (when what (insert ... ... " ") (insert ...)) (goto-char (point-min)) (widen) (if (looking-at "[ ]+ ?\n") (replace-match "")) ts) (save-excursion (let (beg end col list elt ... ts) (org-back-to-heading t) (setq beg ...) (looking-at ...) (goto-char ...) (setq col ...) (goto-char ...) (if ... ... ... ... ... ...) (setq list ...) (while list ... ... ...) (goto-char ...) (when what ... ...) (goto-char ...) (widen) (if ... ...) ts)) org-add-planning-info(scheduled nil closed) org-schedule() (setq ts (org-schedule)) (save-current-buffer (set-buffer buffer) (widen) (goto-char pos) (setq ts (org-schedule)) (message "Item scheduled for %s" ts)) (with-current-buffer buffer (widen) (goto-char pos) (setq ts (org-schedule)) (message "Item scheduled for %s" ts)) (let* ((marker ...) (buffer ...) (pos ...) ts) (with-current-buffer buffer (widen) (goto-char pos) (setq ts ...) (message "Item scheduled for %s" ts))) org-agenda-schedule(nil) call-interactively(org-agenda-schedule) Carsten Dominik <[EMAIL PROTECTED]> writes: > I am releasing version 4.29 of Org-mode, with these changes: > > > Version 4.29 >- Inlining images in HTML export now depends on wheather the link > contains a description or not. >- TODO items can be scheduled from the global TODO list using C-c C-s >- TODO items already scheduled can be made to disappear from the > global > todo list, see `org-agenda-todo-ignore-scheduled'. >- In Tables, formulas may also be Lisp forms. >- Exporting the visible part of an outline with `C-c C-x v' works now > for all available exporters. >- Bug fixes, lots of them :-( > > http://www.astro.uva.nl/~dominik/Tools/org/ > > Enjoy, and keep the feedback coming. > > - Carsten > > -- > Carsten Dominik > Sterrenkundig Instituut "Anton Pannekoek" > Universiteit van Amsterdam > Kruislaan 403 > NL-1098SJ Amsterdam > phone: +31 20 525 7477 > > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] [Announce] Org-publish 1.56
Org-publish version 1.56 has been released. You may obtain it from: http://dto.freeshell.org/e/org-publish.el History of user-visible changes: 1.52: Properly set default for :index-filename 1.48: Composite projects allowed. :include keyword allowed. 1.43: Index no longer includes itself in the index. 1.42: Fix "function definition is void" error when :publishing-function not set in org-publish-current-file. -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] [Announce] org-blog 1.14
I'm pleased to announce the availability of version 1.14 of org-blog. This is the first "official" release. Org-blog is an add-on to org-publish.el that allows simple blog publishing with Org-mode markup. You'll need org-publish.el to use it. You can obtain both from: http://dto.freeshell.org/notebook/OrgMode.html Right now, org-blog enables only very simple blogging support, with a front-page generator and the ability to add a blogroll using the :preamble or :postamble options. I'm eager to expand this support and add new features; I welcome suggestions and ideas from the org-mode community, as well as bug reports :-) NOTE to Austin and others who may already be using org-blog.el: this version introduces incompatible changes in the user interface and in the way posts are stored before publishing. You should finish any posts with the existing version, before you install the new version. -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] configurable link export
Carsten Dominik <[EMAIL PROTECTED]> writes: > Anyway, I have been thinking about your argumentation and come to the > conclusion that this is an issue I would like to push almost entirely > onto Davids table. David, are you listening? :-) Yes :-) > way, would be that the structure and content of > org-publish-project-alist is used to fully automatically determine the > validity of a link. not trivial to implement, but possible and a nice > challenge. I have been thinking about inter-file links in preparation for implementing some of the more advanced features for org-publish (page rewriting, sitemap generation, etc) and I think this will be very simple to straighten out. All we need is for people to specify a property called :link-base that is the prefix for a URL. For example, if :publishing-directory is "/ssh:[EMAIL PROTECTED]:~/public_html/images", the user should probably set the :link-base to "/images" or "http://foosite.org/images"; Given this one extra piece of information, then it is a simple matter for the :link-transform function to actually generate proper URLs (instead of simply validating them.) This would free projects from the requirement that the web server must have the exact same directory layout as your local project files. This would allow, as you say, for link targets to be validated and transformed automatically, given just the structure and contents of org-publish-project-alist. I will work on this and let you know how it goes. Austin--- how does this sound? >> When I create local org files, I link to whatever files on my disk >> are relevant and useful. When I publish those org files, some of >> the org links (like to other published org files) still work and >> make sense as html links. Others (like links to local documents or >> directories) don't make any sense when published-- the resources >> they pointed to on the local system aren't on the remote filesystem >> that hosts the html pages. >> >> To be more specific, I maintain a directory ~/notes/ and a directory >> ~/blog/, each with a bunch of org files underneath it. I then use >> org-publish to generate the html files, which are then uploaded to >> my website. Crucially, this same directory structure is mirrored at >> my website, so local org links between those files work perfectly as >> html links when they are published and uploaded. >> >> I'd love to be able to specify that I want all org links of >> [file:///home/aufrank/notes/*] and [file:///home/aufrank/blog/*] to >> be exported as full html links, and exclude org links to any other >> files on my filesystem at export time. >> >> I think that David has established a good system for including and >> excluding files during publishing. Org-publish first generates a >> list of files to publish based on regex matching of the extensions >> of files in a directory. These are filtered through a regex-based >> exclude list, and then individual files can be added back in with an >> include list. >> >> Applying this strategy to link export, I might want to have >> something like the following in my org-config.el: >> >> (setq org-export-links-extension "org\\|txt" >> org-export-links-exclude "~/*" >> org-export-links-include ("~/notes/", "~/blog/")) >> >> This would result in exporting all of the .org and .txt files in >> ~/notes/ and ~/blog/ as working links in html files, but would >> ignore links in org files to anything else in my home directory >> during export. >> >> There's certainly a question about how org links that are not >> exported as html links should be handled. I would actually be fine >> with just exporting the double-bracketed notation, but I bet there >> are better ideas out there. >> >> Thanks again for the org suite, >> /au >> >> >> ___ >> Emacs-orgmode mailing list >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> > > -- > Carsten Dominik > Sterrenkundig Instituut "Anton Pannekoek" > Universiteit van Amsterdam > Kruislaan 403 > NL-1098SJ Amsterdam > phone: +31 20 525 7477 > > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Org-publish v1.67
Hi folks, I've released org-publish v1.67 on my website. http://dto.freeshell.org/e/org-publish.el NOTE: This version contains an incompatible configuration change. You might have to update your org-publish-project-alist. See the docstring for org-publish-project-alist, for details on the changed format of this variable. -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] org-publish bug
Just to be clear, I don't have the solution to this, but had also noticed it.. Xavier Maillard <[EMAIL PROTECTED]> writes: > Hello, > > As promised to David, just a quick message to inform you that there is a bug > with org-publish. > > In my ColorTheme.org file, I have this: > > Add this to your sources.list: > > :Deb http://zedek.nerim.net/var/spool/repo ./ > :deb-src http://zedek.nerim.net/var/spool/repo ./ > > Then, ensure my key is in your keyring. > > When published, it is rendered as: > > Add this to your sources.list: > > Deb [[http://zedek.nerim.net/var/spool/repo]] ./ > deb-src [[http://zedek.nerim.net/var/spool/repo]] ./ > > > (Note the two [[]]) > > I guess David has already the solution. > Regards, > Xavier > > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[David O'Toole] Fwd: Re: [Emacs-orgmode] org-publish future ?
I'm forwarding my response to the list, as I mistakenly sent it only to Xavier... --- Begin Message --- Hi Xavier, Muse is for people who wish to write all their documents with a single markup syntax, and produce multiple target output formats from this input. One result of this is that the markup syntax is an intersection of the capabilities of the target output formats, so it is (in my opinion) lacking in expressiveness in some situations. Org-publish is still incomplete, but I imagine it is for people who write directly in multiple formats depending on the situation, and want a single system for publishing ALL their content. I write in *.org when I am organizing, doing my webpages, or writing documents; I write in LaTeX when writing larger documents or reports; I write in emacs lisp when programming. So far org-publish doesn't support LaTeX documents, but I can imagine a plugin that will create PDF files and upload them whenever the .tex source changes. I think these styles are different enough to both deserve existing :-) (Emacs-wiki is obsolete; muse is its successor. I don't know much about BHL mode.) You will have to choose the one that suits your style. Some thoughts on the future of org-publish: 1. Report generation. I would like to be able to produce HTML reports of completed tasks, and possibly more sophisticated things like timeclock summaries. This will require org-publish to be able to scan text for some kind of tag, and replace the tag with appropriate org markup (tables of tasks etc.) Then org.el can just process the file, business as usual, because it will contain nothing but org markup. 2. More project planning support. I would like to be able to do Gantt charts in HTML. The reason for this stuff is, I am starting to do work as an independent consultant, and I would like to be able to produce nice reports and project plans for clients. I used to do this with Planner/Emacs-wiki but the rather limiting markup sometimes frustrated me. I also need to be able to keep detailed records of time spent on different tasks, so that I can produce accurate bills. By the way, I used to generate nice PDFs of my reports with Firefox and ps2pdf. I think, provided it can be made into a batch operation, that this is a perfectly acceptable way of producing PDF output from org. On a related note, Carsten are you reading? Something came up in IRC discussion, about making it easier to convert org documents to other formats. Although I am a bit resistant to the idea, especially since it would take things in a more muse-ish direction, I remember you had mentioned making a "cleaned up" publishing function that produces an intermediate format (s-expressions?) that could be transformed into something else. Are you still thinking about this? "Xavier Maillard" <[EMAIL PROTECTED]> writes: > Hi, > > I was looking on emacswiki searching for publish engines for Emacs. > Actually, I have found at least three of them: > > 1. muse > 2. emacs-wiki > 3. bhl > > Adding org-publish to this list, we got 4 engines that do merely the same > thing except for org-publish which offers less features. So what is the > current goal for org-publish exactly ? Is there any possiblity that > org-publish be incorporated into something bigger and more insteresting for > us as end users. are there any plans for orc-publish if at all ? > > I know David is quite busy with all his projects but I would like to know if > it is worth I learn org-publish in depth or switch to something else. So > David, what are your plans ? :) > > Regards > -- > Xavier Maillard > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Dave O'Toole [EMAIL PROTECTED] --- End Message --- -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] timestamps and work logging
Hi Carsten. I have another modest proposal for you :-) I notice that org-mode has a concept of timestamp ranges, and a function to calculate the length of time in a given timestamp range. It seems to me that with a small amount of additional work, org-mode could: 1. Provide a function org-clock-in, which lets you signal that you have started working on a particular task. This would start a timestamp range going on that task, so when you clock in on task Foo, you get ** TODO Foo WORK: <2006-06-06 Tue 06:33>--<> 2. Provide a function org-clock-out, which remembers where you last clocked in, and completes the timestamp range: ** TODO Foo WORK: <2006-06-06 Tue 06:33>--<2006-06-06 Tue 06:35> 3. Produce another timestamp range when you clock in again, thus recording all the time intervals when you worked on this task: ** TODO Foo WORK: <2006-06-06 Tue 06:33>--<2006-06-06 Tue 06:35> WORK: <2006-06-06 Tue 06:39>--<> 4. Clock out of task A if you clock in to task B without manually clocking out of task A. 5. Optionally display work time (i.e. no task completion) when log-mode is on in the Agenda buffer. 6. When you call org-clock-total in a particular org-file, sum the time intervals for each task in the file and produce a line like TOTALWORK: 3:14 (3 hours, 14 minutes) (This would make it easy for me to scan the file and produce client bills from the output.) I originally looked at timeclock.el for this, and wrote a simple org interface for it, but I want to keep the time logging information in my org-files, next to each task description, and separated for each client---not all bundled together in a huge ~/.timelog file. What do you think? Does it sound like a lot of work? -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [David O'Toole] Fwd: Re: [Emacs-orgmode] org-publish future ?
I tend to agree... I wasn't that hot about this possibility myself, but thought it would be prudent to ask. Carsten Dominik <[EMAIL PROTECTED]> writes: > On Jun 5, 2006, at 23:19, David O'Toole wrote: >> >> On a related note, Carsten are you reading? Something came up in IRC >> discussion, about making it easier to convert org documents to other >> formats. Although I am a bit resistant to the idea, especially since >> it would take things in a more muse-ish direction, I remember you had >> mentioned making a "cleaned up" publishing function that produces an >> intermediate format (s-expressions?) that could be transformed into >> something else. Are you still thinking about this? > > My interest in exporting Org-mode to more formats is quite limited. I > am not using Org-mode to write books. And if I want to produce a > book, moving away from the fantastic toolset for LaTeX available under > Emacs to something that limits my possibilities to a subset of LaTeX > is a loss, not a gain. > > Personally, I am not often in a situation where I need to produce many > different output formats of a document. The only major application > for this is documentation, for example of computer programs produce > documentation. There are many systems that can do this, for example > POD (developed for the perl documentation), TeXInfo, muse. I don't > see why Org-mode needs to be able to do the same. > > The one thing I would be interested in is indeed to produce one very > general format that would allow people to do with it whatever they > want. My feeling is that such a format could be based on the current > HTML exporter because it does a complete structural analysis of an > Org-mode document, and the output could be some kind of semantic-only > HTML, or XML, or whatever. I have not taken any steps toward > implementing this, and right now I don't see it happening. > > - Carsten > > -- Dave O'Toole [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] org-publish.el v1.70
I've released org-publish.el v1.70 at http://dto.freeshell.org/e/org-publish.el News for this release: the new function (org-publish-validate-link) should allow org.el to filter out links to files that aren't actually published, during conversion to HTML. Something like this was originally requested by Austin Frank (hi austin!) Be advised, this feature is in its early stages, and could be totally wrong :-) -- David O'Toole -- Independent Consultant [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Re: [David O'Toole] Fwd: Re: org-publish future ?
I will look into this and get back to you. "Chris wallace" <[EMAIL PROTECTED]> writes: > On 07/06/06, Carsten Dominik <[EMAIL PROTECTED]> wrote: >> >> >> On Jun 6, 2006, at 18:02, Chris wallace wrote: >> >> > >> > PS. On the subject of org-publish (sort of), one of the things I like >> > most about org-mode is that I can have Readme.org files scattered over >> > a number of directories and have them all included in the agenda. >> > However, org-publish assumes all org files for a single project reside >> > in a single directory. I wonder if I am the only one who has several >> > directories per project? >> >> I think you can already use the :include parameter to do this - at >> least I hope that you can give absolute path names there. If not, i >> would consider this a bug. > > > So either this is a bug or I'm mis-using the :include parameter. I have > org-publish-project-alist set as follows: > > org-publish-project-alist is a variable defined in `org-publish.el'. > Its value is > (("bright" :base-directory "~/bright" > :base-extension "org" > :include ("/home/chris/bright/chr5/cng/Readme.org" > "/home/chris/bright/chr5/phase2/Readme.org") > :publishing-directory "~/public_html/org" > :with-section-numbers nil > :table-of-contents t > :style " type=\"text/css\">")) > > When I do M-x org-publish bright the *.org files in ~/bright are published, > but the included files are not. I also tried with filenames relative to > ~/public/org; same result. How should I be setting :include? > > This is with org v. 4.36, org-publish v. 1.70, emacs v. 22.0.50.2 > > Chris. > > > > - Carsten >> >> > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- David O'Toole -- Independent Consultant [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] org-publish v1.71
Bugfix release. Should now allow absolute filenames in the :include directive. --- Begin Message --- Hi David, you can use (setq allfiles (cons (expand-file-name inc dir) allfiles)) which will cover both absolute and relative file names. Thanks! - Carsten On Jun 7, 2006, at 17:25, David O'Toole wrote: > > I will look into this and get back to you. > > "Chris wallace" <[EMAIL PROTECTED]> writes: > >> On 07/06/06, Carsten Dominik <[EMAIL PROTECTED]> wrote: >>> >>> >>> On Jun 6, 2006, at 18:02, Chris wallace wrote: >>> >>>> >>>> PS. On the subject of org-publish (sort of), one of the things I >>>> like >>>> most about org-mode is that I can have Readme.org files scattered >>>> over >>>> a number of directories and have them all included in the agenda. >>>> However, org-publish assumes all org files for a single project >>>> reside >>>> in a single directory. I wonder if I am the only one who has several >>>> directories per project? >>> >>> I think you can already use the :include parameter to do this - at >>> least I hope that you can give absolute path names there. If not, i >>> would consider this a bug. >> >> >> So either this is a bug or I'm mis-using the :include parameter. I >> have >> org-publish-project-alist set as follows: >> >> org-publish-project-alist is a variable defined in `org-publish.el'. >> Its value is >> (("bright" :base-directory "~/bright" >> :base-extension "org" >> :include ("/home/chris/bright/chr5/cng/Readme.org" >> "/home/chris/bright/chr5/phase2/Readme.org") >> :publishing-directory "~/public_html/org" >> :with-section-numbers nil >> :table-of-contents t >> :style "> type=\"text/css\">")) >> >> When I do M-x org-publish bright the *.org files in ~/bright are >> published, >> but the included files are not. I also tried with filenames relative >> to >> ~/public/org; same result. How should I be setting :include? >> >> This is with org v. 4.36, org-publish v. 1.70, emacs v. 22.0.50.2 >> >> Chris. >> >> >> >> - Carsten >>> >>> >> ___________ >> Emacs-orgmode mailing list >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- > David O'Toole -- Independent Consultant > [EMAIL PROTECTED] > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 --- End Message --- -- David O'Toole -- Independent Consultant [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] org-publish v1.71
Tranforming the filenames/paths during publishing is a nontrivial problem. This would require changes to both org-publish and org itself. One way of solving it would be to pass an association list mapping input filenames to output filenames, this would let you bypass the normal :publishing-directory setting and set things on a per-file basis. Carsten, what do you think? "Chris wallace" <[EMAIL PROTECTED]> writes: > On 08/06/06, David O'Toole <[EMAIL PROTECTED]> wrote: >> >> >> Bugfix release. Should now allow absolute filenames in the :include >> directive. >> >> > Thanks. It works. Just one more request, so I can use this with my files > spread across many directories. > > When I have > > (setq org-publish-project-alist > (list > '("bright" . (:base-directory "~/bright" > :base-extension "org" > :include ("/home/chris/bright/chr5/cng/Readme.org" > "/home/chris/bright/chr5/phase2/Readme.org") > :publishing-directory "~/public_html/org" > > The two Readme.org files both get published as > ~/public_html/org/Readme.org. I would really like them to be > ~/public_html/org/chr5_cng_Readme.html and > ~/public_html/org/chr5_phase2_Readme.org. Ie with the directory relative to > :base-directory included in the file name. Is this possible? > > My working situation is that under project bright, important directories > have a Readme.org file containing notes relating to that sub-directory. > It's handy for writing the notes for the filename to always be Readme.org, > but less handy for publishing so that my colleagues can see where I'm up to. > > Thanks, Chris. -- David O'Toole -- Independent Consultant [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] org-publish error
Looking at the backtrace, I'd say the error occurs inside org.el. Carsten, perhaps you could look at this? Leon <[EMAIL PROTECTED]> writes: > Hi all, > > org 4.38 > > When I delete the published html file, sequent publish will fail with > error. Here is the backbrace. > > Debugger entered--Lisp error: (error "File ~/Desktop/studyplan.html no longer > exists!") > signal(error ("File ~/Desktop/studyplan.html no longer exists!")) > error("File %s no longer exists!" "~/Desktop/studyplan.html") > find-file-noselect("./studyplan.html") > (let* ((opt-plist ...) (style ...) (link-validate ...) valid (odd > org-odd-levels-only) (region-p ...) (region ...) (all_lines ...) (lines ...) > (level 0) (line "") (origline "") txt todo (umax nil) (filename ...) > (current-dir ...) (buffer ...) (levels-open ...) (date ...) (time ...) > (author ...) (title ...) (quote-re0 ...) (quote-re ...) (inquote nil) > (infixed nil) (in-local-list nil) (local-list-num nil) (local-list-indent > nil) (llt org-plain-list-ordered-item-terminator) (email ...) (language ...) > (text ...) (lang-words nil) (target-alist nil) tg (head-count 0) cnt (start > 0) (coding-system ...) (coding-system-for-write ...) > (save-buffer-coding-system ...) (charset ...) table-open type table-buffer > table-orig-buffer ind start-is-num ...) (message "Exporting...") (setq > org-last-level 1) (org-init-section-numbers) (setq lang-words (or ... ...)) > (if (or hidden ...) (set-buffer buffer) (switch-to-buffer-other-window > buffer)) (erase-buffer) (fundamental-mode) (let (... ...) (mapcar ... > org-export-plist-vars) (setq umax ...) (insert ...) (insert ...) (when ... > ... ...) (if org-export-with-toc ...) (setq head-count 0) > (org-init-section-numbers) (while ... ...) (when inquote ...) (when > in-local-list ... ...) (org-html-level-start 1 nil umax ... head-count) (when > ... ... ...) (if org-export-html-with-timestamp ...) (insert ...) (insert > "\n\n") (normal-mode) (goto-char ...) (while ... ...) > (goto-char ...) (while ... ...) (save-buffer) (goto-char ...))) > org-export-as-html(nil) > call-interactively(org-export-as-html) > (if (setq ass (assq r2 cmds)) (call-interactively (cdr ass)) (error "No > command associated with key %c" r1)) > (let ((help "[t] insert the export option template\n[v] limit export to > visible part of outline tree\n\n[a] export as ASCII\n[h] export as HTML\n[b] > export as HTML and browse immediately\n[x] export as XOXO\n\n[i] export > current file as iCalendar file\n[I] export all agenda files as iCalendar > files\n[c] export agenda files into combined iCalendar file\n\n[F] publish > current file\n[P] publish current project\n[X] publish... (project will be > prompted for)\n[A] publish all projects") (cmds ...) r1 r2 ass) > (save-window-excursion (delete-other-windows) (with-output-to-temp-buffer > "*Org Export/Publishing Help*" ...) (message "Select command: ") (setq r1 > ...)) (setq r2 (if ... ... r1)) (if (setq ass ...) (call-interactively ...) > (error "No command associated with key %c" r1))) > org-export() > call-interactively(org-export) > > -- > Leon > > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Emacs-orgmode] Problem with org-publish-get-plists
Sorry for the late reply. I have incorporated your bugfix into the latest version of org-publish.el and will publish the updated code on my website shortly. Thanks so much for your debugging! "Ed Hirgelt" <[EMAIL PROTECTED]> writes: > I was having problems publishing with 2 projects in the project list. > I tracked it down to the org-publish-files hash table. All the files > from both projects were mapped to the same project, the last one. > This was caused by org-publish-get-plists. Below is the modified > version that seems to work nicely for me. > > The trick as that plists was getting appended to each time through the > loop which is great for the return value, but the loop over the > content of plists assumed that project applied to all. This change > uses single to be the current element in plists. The return value > remains the same. > > Hope this helps. > > Thanks, > Ed > - > > (defun org-publish-get-plists (&optional project-name) > "Return a list of property lists for project PROJECT-NAME. > When argument is not given, return all property lists for all projects." > (let ((alist (if project-name > (list (assoc project-name org-publish-project-alist)) >org-publish-project-alist)) > (project nil) > (plists nil) > (single nil) > (components nil)) > >;; >;; >(while (setq project (pop alist)) > ;; what kind of project is it? > (if (setq components (plist-get (cdr project) :components)) > ;; meta project. annotate each plist with name of enclosing project > (setq single > (apply 'append > (mapcar 'org-publish-get-plists components))) > ;; normal project > (setq single (list (cdr project > ;; > (setq plists (append plists single)) > (dolist (p single) > (let* ((exclude (plist-get p :exclude)) > (files (org-publish-get-base-files p exclude))) > (dolist (f files) > (puthash (file-truename f) (car project) org-publish-files) >plists)) > > > -- > Ed Hirgelt > > Discovery consists of seeing what everybody has seen > and thinking what nobody has thought. > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Updated org-publish.el
Hello folks, the new version is available at my site. http://dto.freeshell.org/e/org-publish.el This is a bugfix release: - Emacs 21 compatibility fix for timestamps. - Bugfix for problem with projects getting assigned to files wrong. -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-publish.el version 1.77: now with preparation-function feature
I've added a small new feature to org-publish.el version 1.77, available from http://dto.freeshell.org/e/org-publish.el There is a new project keyword called :preparation-function. Its value should be a function with no arguments, which will be called to "prepare" a project for publishing. An example usage is to call GNU Make to update files that need processing, before publishing the resultant files. I use this to publish tarballs on my website. Here is the project definition I use to make that happen: >'("packages" > :base-directory "~/packages/" > :base-extension "gz" > :publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/packages/" > :publishing-function org-publish-attachment > :preparation-function (lambda () >(call-process "make" nil nil nil > "--makefile" > "/home/dto/packages/Makefile"))) This causes the *.gz to be updated when neccessary (according to the makefile) and then any updated *.gz are uploaded to the web server. -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-publish.el v1.78
I've released org-publish.el v1.78. It is available from http://dto.freeshell.org/e/org-publish.el Changes: - allow list of functions for :publishing-function. each is called on the file in question, one by one. I wanted to publish both my source .org files and their .html exported versions, so now i just write in my project definition: :publishing-function (org-publish-org-to-html org-publish-attachment) -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org-mode usage and concept mapping.
Alex Bochannek <[EMAIL PROTECTED]> writes: > It seems to me that there is a fair amount of GTD, task scheduling, > and project tracking usage. Some mention of note taking and very > little of traditional outlining, it seems. I use the outlining heavily to outline and structure documents and projects with many parts. Few of my TODOs are first-level headings. headings... they're always two or three or four stars in. But I have a friend who makes big files with TODOs all as first-level headings. There are many ways to use org-mode :-) I also use Carsten's outline-magic.el (which feels like org-mode with its visibility cycling) to organize and get overviews of source code in my emacs lisp projects. Side question: Carsten, did you get a chance to integrate my bugfix into the version of outline-magic available on your site? I still use a locally fixed version, but i think others might like to have their source code cycle like orgmode buffers do. > Concept1 > |Link1 > |Concept2 > ||Link2 > ||Concept4 > |Concept3 > ||Link3 > ||Concept5 > ||Concept4 Interesting. Couldn't the links be modeled with org-mode tags and just make everything headings? Um, it'd be postfix notation but at least it could work I think... see below. This could possibly be processed and exported into a map, or even a diagram for GNU Pic or something. --- Concept1 Concept2:link1: Concept 4 :link2: Concept3:link1: Concept5:link3: Concept4 :link3: --- -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] "Invalid function" error with org-publish-project-alist
I think the example is missing some parentheses. I will fix it. In the meantime i can get this to parse just fine: (setq org-publish-project-alist '(("org" :base-directory "~/notebook/org/" :base-extension "org" :publishing-directory "~/public_html/notebook/" :publishing-function org-publish-org-to-html :headline-levels 2 :with-section-numbers nil :table-of-contents nil :style "" :auto-preamble t :auto-postamble nil) ("img" :base-directory "~/notebook/img/" :base-extension "jpg\\|gif\\|png" :publishing-directory "~/public_html/img/" :publishing-function org-publish-attachment))) Andrew Laing <[EMAIL PROTECTED]> writes: > Hi list, > > I am just learning org-mode and org-publish and have rarely felt so > exited about software. :) > > Many props and thanks to Carsten, David, et al! > > But I have been having a problem I can't figure out. I have org.el > v4.49, which includes org-publish.el v1.77. I load my org-config.el from > my .emacs.el which has org-publish configuration which I copied out of > the org-publish file's comments: > > ;; > ;; org-config.el > ;; > > (add-to-list 'load-path "~/Emacs/org-4.49") > (require 'org-install) > > > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > (define-key global-map "\C-cl" 'org-store-link) > (define-key global-map "\C-ca" 'org-agenda) > (setq org-log-done t) > > (setq org-publish-project-alist >(list > '("org" :base-directory "~/notebook/org/" > :base-extension "org" > :publishing-directory "~/public_html/notebook/" > :publishing-function org-publish-org-to-html > :headline-levels 2 >:with-section-numbers nil > :table-of-contents nil > :style " type=\"text/css\">" > :auto-preamble t > :auto-postamble nil) > ("img" :base-directory "~/notebook/img/" > :base-extension "jpg\\|gif\\|png" > :publishing-directory "~/public_html/img/" > :publishing-function org-publish-attachment) > ; ("css" :base-directory "~/notebook/css/" > ; :base-extension "css" > ; :publishing-directory "~/public_html/" > ; :publishing-function org-publish-attachment) > ; ("website" :components ("org" "img" "css")) > )) > > ;; load cdlatex for frags > (autoload 'cdlatex-mode "cdlatex" "CDLaTeX Mode" t) > (autoload 'turn-on-cdlatex "cdlatex" "CDLaTeX Mode" nil) > (add-hook 'org-mode-hook 'turn-on-org-cdlatex) > > ;; > ;; end org-config.el > ;; > > > Loading this file returns the following error: > > Invalid function: "img" > > Any thoughts? > > I can't seem to figure this one out. Any pointers would be very much > appreciated. > > Cheers, Andrew > > -- > Andrew Laing <[EMAIL PROTECTED]> > Adam met Eve and turned over a new leaf. > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Basic RSS support for org-blog
Org-blog is still pretty basic, but it now produces valid RSS 2.0 feeds. See http://dto.freeshell.org/e/org-blog.el for the code, and http://dto.freeshell.org/blog/blog.xml for the results! -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org-mode version 4.68
Hi everyone, I'll set aside some time this week to straighten out these problems. Sorry I haven't been too vocal on the orgmode list lately, I have been working on other things. Is there anything else people want me to add/fix in org-publish while I am at it? Carsten Dominik <[EMAIL PROTECTED]> writes: > On Mar 16, 2007, at 12:11, Bastien wrote: >> * org-publish issues >> >> C-c C-e A (org-publish-all) won't save the window configuration, >> depending on what buffers are to be saved and published. >> >> Using timestamps for org-publish is *very convenient*. But forcing >> re-publication of all the pages (C-u C-c C-e a), makes emacs >> complains >> about missing directories in ~/.org-timestamps when a project has not >> been normally published first (with C-c C-e P or C-c C-e A). I think >> forced re-publication should create these directories itself. > > I have forwarded this mail to David O'Toole, to find out if he still > feels responsible for changes in org-publish. Lets wait if he responds. -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-publish.el 1.80
I'm pleased to announce a bugfix release of org-publish.el. http://dto.freeshell.org/e/org-publish.el Changes: + Save window configuration when publishing + Create subdirectories of org-publish-timestamp-directory Some people mailed in feature requests; I will explore those suggestions and keep you posted on what changes I will make. -- David O'Toole [EMAIL PROTECTED] http://dto.freeshell.org/notebook/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org-mode with color-theme.el
Hello org folks! I've posted a screen shot of my color theme called "CL-FRAME" and it includes org-mode faces. shot: http://dto.freeshell.org/images/org-faces-shot.png lisp: http://dto.freeshell.org/e/color-theme-cl-frame.png On 4/5/07, Bastien <[EMAIL PROTECTED]> wrote: Bastien <[EMAIL PROTECTED]> writes: > Carsten Dominik <[EMAIL PROTECTED]> writes: > >> Maybe we can have a competition here for the best color scheme for >> Org-mode, making use of color-theme as the vehicle to install these. > > There is several ways to contribute to color-theme.el with relevant > org-mode faces : I've set up a page to gather contributions : http://www.cognition.ens.fr/~guerry/org-color-themes.html Feel free to submit your code/screenshots ! -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org-mode with color-theme.el
I'm sorry, that 2nd link should be http://dto.freeshell.org/e/color-theme-cl-frame.el On 4/5/07, David O'Toole <[EMAIL PROTECTED]> wrote: Hello org folks! I've posted a screen shot of my color theme called "CL-FRAME" and it includes org-mode faces. shot: http://dto.freeshell.org/images/org-faces-shot.png lisp: http://dto.freeshell.org/e/color-theme-cl-frame.png On 4/5/07, Bastien <[EMAIL PROTECTED]> wrote: > Bastien <[EMAIL PROTECTED]> writes: > > > Carsten Dominik <[EMAIL PROTECTED]> writes: > > > >> Maybe we can have a competition here for the best color scheme for > >> Org-mode, making use of color-theme as the vehicle to install these. > > > > There is several ways to contribute to color-theme.el with relevant > > org-mode faces : > > I've set up a page to gather contributions : > http://www.cognition.ens.fr/~guerry/org-color-themes.html > > Feel free to submit your code/screenshots ! > > -- > Bastien > > > ___ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Idea: Agenda Search publish?
I think this means being able to publish static HTML from the various views given by the agenda. So for example you could set up a timer to publish your agenda each day (assuming you run emacs for months like I do) and then if you are away from home, check your website to see the HTML agenda. Might require some changes in org-publish, if so I'd be happy to make them. I regret being a bit "out of touch" with the org community these last few months and I'd like to be more involved again. Org is Great :-) On 4/5/07, Carsten Dominik <[EMAIL PROTECTED]> wrote: On Apr 5, 2007, at 12:03, Leo wrote: > On 2007-04-05, Bastien said: > >> "Tim O'Callaghan" <[EMAIL PROTECTED]> writes: >> >>> Hi, i have been playing with org-agenda-custom-commands, and it got >>> me thinking. >>> >>> What about adding the generated searches as a publishable source? >> >> Yes, i also think that would be useful. > > I also like this. Obviously everyone except me understands exactly what Tim is proposing. Would someone like to explain it to me :-) - Carsten ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode