Re: [Orgmode] org-babel: Managing a bibtex database
Hi again, I just rethought my idea. I think even if there is no full automatic link function, it would be nice to see bibtex as a org-babel mode. My worse case scenario is as follow: Someone ask me to send the reference X or a bunch of references Y to someone in plain-text (mostly they like to copy them over in MS-word). The actual procedure: For the moment, I have to write a fake LaTeX document, and force bibtex to place all the given bibtex-keys into the references list of this document even if not really refered to it in the text. I guess I could also copy all the bibtex entires of the desired references in a singel bib-file and run bibtex manualy. But I'm doubt whether this is really faster. After that I need to copy the results from the PDF or PS file to plain text email. Wrong line breaks and format loose are the results. The org-mode babel approach would be: I would prefer two ways in a bibtex-babel set-up. 1. Take the bibtex-entires from a given database (bib-file) according to the given bibtex-keys inside the source code block. Process them by the given bibtex-style and place the result in the result section of org-babel. 2. Add full bibtex entries directly to the source code block and process them according to the given bibtex style. Place the result in the result section of org-babel. The idea to extend the link function of org-mode by linking to a bibtex- database might be the next step. Best regards Torsten ___ 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 Folded View when Startup
On Jan 22, 2010, at 12:48 AM, Chao Lu wrote: Hey, I found my Org refuse to do the overview view correctly. Although I have explicitly set the org-startup-folded to be t. Each time when I open an org file, it still in plain view (not folded). Does it come up with Org-mode turned on at all? or is it in a different major mode? Any interesting messages in the *Messages* buffer? Why do you call your setup file org.el? This might cause problems, because the main org-mode lisp file is org.el as well... - Carsten So I have to M-x org-mode, then it enters the fold view, which is really annoying... Could anybody help me? My version of Emacs is 23.1.90.1 (WinNT), Org-mode is 6.33trans. And my configure for org is included in attachment. Thanks a lot. Chao org.el___ 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 - Carsten ___ 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] Open link with different suffix in org mode
On Jan 21, 2010, at 4:25 PM, Xin Shi wrote: Hello Experts, I'm using Emacs 23.1.1 and org mode 6.34b. In the org file, if I use a link say [[./link.org][test]], it will open the link.org file in another buffer with orgmode. It will be also true, if I use [[./ link.txt][link test]], which will open a link.txt file with Text mode. However, if I do the following: [[./test.info][test]], it will just hang there. It seems that org does not know how to deal with the .info suffix. Are there any way to set the org to open different link? I've read the org manual, but didn't find the solution. Any suggestions? Hi Xin, one solution is to customize the variable org-file-apps and add to an entry like this: Choice: Value Menu Extension: \.info\' Choice: Value Menu Visit with Emacs Any file types that have an major-mode assigned to it using auto-mode-alist will already be visited by Emacs automatically, but .info is not one of those file types. So another solution would be something like the following in your setup. (add-to-list 'auto-mode-alist '(\\.info\\' . text-mode)) Actualy, this is probably the better solution. HTH - Carsten ___ 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: no SPACE allowed in new node/item name created during refiling
On Jan 21, 2010, at 2:43 AM, Bernt Hansen wrote: Manish mailtomanish.sha...@gmail.com writes: Hello Carsten, A SPACE is not allowed in the name when creating a new node/item while refiling, is it a bug, restriction or configuration issue? I think I've gotten around that with C-q SPC when creating the new refile entry but I'm not on the tip of the master branch currently. Yes, this is always a possible solution. This problem goes back to the fact that Emacs completion functions use SPACE as a command character doing completion. I have turned that off in most contexts where spaces might be interesting, but apparently I did miss one. Still need to find time to follow this up. - Carsten P.S. Any particular reason why you are not on the tip? -Bernt ___ 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 - Carsten ___ 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] Open link with different suffix in org mode
Hi, Xin, Xin Shi shixin...@gmail.com writes: Emacs 23.1.1 and org mode 6.34b. here: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Org-mode version 6.34 Windows XP PS3 a link say [[./http://link.org][test]], it will open the http://link.org file in another buffer with orgmode. [...] [[./http://test.info][test]], it will just hang there. + [[file:fit.log][fit]] fit.log is opened with notepad + [[file:../../../a.info][test]] a.info is not opened: the message error, in Italian, translates in: eval: ShellExecute failed: None application is associated to the specified file for this operation It seems that org does not know how to deal with the .info suffix. Well, I suspect that org calls the program defined in the mailcap file. Please check there if you have a program associated to the .info extension cheers, Giovanni ___ 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-agenda-files variable
On Jan 18, 2010, at 11:46 AM, andrea wrote: Anyway emacs-version: 23.1.50.1 org-version: 6.33trans The code for the hook is this --8---cut here---start-8--- (defun org-add-eventually() Adding a file to org-agenda when saved (interactive) (if (string= major-mode org-mode) (org-agenda-file-to-front))) (add-hook 'before-save-hook 'org-add-eventually) --8---cut here---end---8--- And finally I have different operating systems, linux on the other machine and osx 10.6 on this one. I'm not sure when the filename gets added in the wrong format, but maybe it's my fault, I visit the absolute path. Anyway if I can force somehow to only use relative to home paths in emacs somehow it would be also fine. I have looked in the code, and I have trouble to see how file names would get into the list unabbreviated. The code explicitly abbreviates (i.e. inserts ~ for the HOME directory) for all new files. Even if you have visited the file with an absolute path. The only thing I can imagine is that you have, at some point, filled the variable in a direct way, for example using wildcard expansion like described in http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards This would insert absolute file names into the list, and once they are in there, they will not be replaced with relative ones. One way to clean up would be to remove all files from the list and start over, only adding them with your hook function. Another way would be to evaluate (i.e. put the cursor behind it and press `C-x C-e') the following form in the scratch buffer (org-store-new-agenda-file-list (mapcar 'abbreviate-file-name org-agenda-files)) Hope this helps - Carsten ___ 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] [PATCH] org-narrow-to-subtree: prevent prepending text to the next headline while narrowed
Applied (but not yet pushed because of hardware upgrade at repo.or.cz), thanks. I had implemented it the other way round because that would avoid making new empty lines by accident, but I do agree that swallowing a headline is by fare the more severe problem. Thanks. - Carsten On Jan 18, 2010, at 12:13 PM, Jan Böcker wrote: Consider the following situation: * A Some text. * B - Place the cursor on A, press C-x n w (org-narrow-to-subtree). - Go to the very end of the buffer and insert xyz. - C-x n w (widen). You end up with: * A Some Text xyz* B The attached one-line patch fixes this by passing `nil' for the `to-heading' parameter of `org-end-of-subtree'. 0001-org-narrow-to-subtree-prevent-prepending-text-to- the.patch___ 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 - Carsten ___ 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] Open link with different suffix in org mode
Hi Carsten and Giovanni, I used (add-to-list 'auto-mode-alist '(\\.info\\' . text-mode)) and it works! By the way, my system is GNU Linux. Thanks! Xin On Fri, Jan 22, 2010 at 4:45 AM, Giovanni Ridolfi giovanni.rido...@yahoo.it wrote: Hi, Xin, Xin Shi shixin...@gmail.com writes: Emacs 23.1.1 and org mode 6.34b. here: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Org-mode version 6.34 Windows XP PS3 a link say [[./http://link.org][test]], it will open the http://link.org file in another buffer with orgmode. [...] [[./http://test.info][test]], it will just hang there. + [[file:fit.log][fit]] fit.log is opened with notepad + [[file:../../../a.info][test]] a.info is not opened: the message error, in Italian, translates in: eval: ShellExecute failed: None application is associated to the specified file for this operation It seems that org does not know how to deal with the .info suffix. Well, I suspect that org calls the program defined in the mailcap file. Please check there if you have a program associated to the .info extension cheers, Giovanni ___ 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 file containing different local variables
An org file (it contains an explanation on using emacs distraction free for writing) lists on some places LaTeX Local Variables, eg: %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: From then on Emacs does not open this file in org-mode but in latex-mode. Neiter setting Local Variables at the end to org (mode) does not change this behaviour nor if set at the beginning of the file. henry -- http://literaturlatenight.de ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] org-narrow-to-subtree: prevent prepending text to the next headline while narrowed
I'm not so sure about this patch. Are you sure this will work with sorting headlines? Swallowed headlines occur if end of narrowed region is at eol. What about other operations, including user-written commands? Can we be sure that they will not to swallowed headlines? IMO the behavior described as a bug by the OP is correct -- the user should insert a newline after xyz (or org could detect that and insert a newline depending on mode-require-final-newline or require-final-newline). I think opinions might vary on this. -- Q: How many CDC scientists does it take to change a lightbulb? A: You only think it's dark. [CDC has denied a deadly disease for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.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] Org Folded View when Startup
Hey Carsten, I believe the org-mode is turned on, for I saw it from the mode-line. But after I checked the *message buffer, I found something. -*Message--- *File mode specification error: (wrong-type-argument keymapp nil)* Loading f:/Var/URoot/.emacs.d/site-lisp/iimage.el (source)...done *File mode specification error: (wrong-type-argument keymapp nil) [2 times]* Desktop: 9 buffers restored. Loading f:/Var/URoot/.emacs.d/var/emacs-session...done For information about GNU Emacs and the GNU system, type C-h C-a. --- Do you have any idea? By the way, I have the yasnippet minor mode enabled, is it possibly be an cause? Thanks a lot! Chao On Fri, Jan 22, 2010 at 4:18 AM, Carsten Dominik carsten.domi...@gmail.comwrote: On Jan 22, 2010, at 12:48 AM, Chao Lu wrote: Hey, I found my Org refuse to do the overview view correctly. Although I have explicitly set the org-startup-folded to be t. Each time when I open an org file, it still in plain view (not folded). Does it come up with Org-mode turned on at all? or is it in a different major mode? Any interesting messages in the *Messages* buffer? Why do you call your setup file org.el? This might cause problems, because the main org-mode lisp file is org.el as well... - Carsten So I have to M-x org-mode, then it enters the fold view, which is really annoying... Could anybody help me? My version of Emacs is 23.1.90.1 (WinNT), Org-mode is 6.33trans. And my configure for org is included in attachment. Thanks a lot. Chao org.el___ 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 - Carsten ___ 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] Moving to babel the whole configuration
At Thu, 21 Jan 2010 07:43:17 -1000, Thomas S. Dye wrote: Have you seen the emacs starter kits? I've found Eric Schulte's starter kit to be very handy. After struggling with emacs configuration for decades I now have at least the illusion of control. The configuration is held in a series of org files that hold emacs-lisp code blocks, which are tangled to produce the .el file that emacs expects. Each of my code chunks resides under its own org-mode heading, replete with notes, links, etc. It is kind of like a literate .emacs program. Argghhh! I hate org-mode sometimes [1]: just when I think I'm reaching a stable system, somebody comes along and makes me realise how much better (easier to manage/understand) my system would be if I put yet more under org-mode control! Time to go through my .emacs etc files -- if you don't hear from me for several months, you'll know why! eric Footnotes: [1] As always, thanks to Carsten et al. for such a wonderful and useful tool which has, without exaggeration, transformed by life in both dramatic and subtle ways. ___ 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] Moving to babel the whole configuration
Eric S Fraga ucec...@ucl.ac.uk writes: At Thu, 21 Jan 2010 07:43:17 -1000, Thomas S. Dye wrote: Have you seen the emacs starter kits? I've found Eric Schulte's starter kit to be very handy. After struggling with emacs configuration for decades I now have at least the illusion of control. The configuration is held in a series of org files that hold emacs-lisp code blocks, which are tangled to produce the .el file that emacs expects. Each of my code chunks resides under its own org-mode heading, replete with notes, links, etc. It is kind of like a literate .emacs program. Argghhh! I hate org-mode sometimes [1]: just when I think I'm reaching a stable system, somebody comes along and makes me realise how much better (easier to manage/understand) my system would be if I put yet more under org-mode control! Time to go through my .emacs etc files -- if you don't hear from me for several months, you'll know why! eric Footnotes: [1] As always, thanks to Carsten et al. for such a wonderful and useful tool which has, without exaggeration, transformed by life in both dramatic and subtle ways. Amazing isn't it? I just blew a day by moving to org-babel for my init file and managed to miss the + in my #+end_src marker ... but now its working its all smiles despite another day configuring rather than doing ;) It's an emacs problem in general. A shame there are no jobs configuring your editor -- Google Talk : rileyrg...@googlemail.com http://www.google.com/talk ASCII ribbon campaign ( ) - against HTML email X vCards / \ ___ 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 Folded View when Startup
On Jan 22, 2010, at 6:37 PM, Chao Lu wrote: Hey Carsten, I believe the org-mode is turned on, for I saw it from the mode- line. But after I checked the *message buffer, I found something. -*Message--- File mode specification error: (wrong-type-argument keymapp nil) Maybe this FAQ enry will help? http://orgmode.org/worg/org-faq.php#wrong-type-argument-keymapp If not, strip your config piece by piece until the error goes away and in this way identify the offender. HTH - Carsten Loading f:/Var/URoot/.emacs.d/site-lisp/iimage.el (source)...done File mode specification error: (wrong-type-argument keymapp nil) [2 times] Desktop: 9 buffers restored. Loading f:/Var/URoot/.emacs.d/var/emacs-session...done For information about GNU Emacs and the GNU system, type C-h C-a. --- Do you have any idea? By the way, I have the yasnippet minor mode enabled, is it possibly be an cause? Thanks a lot! Chao On Fri, Jan 22, 2010 at 4:18 AM, Carsten Dominik carsten.domi...@gmail.com wrote: On Jan 22, 2010, at 12:48 AM, Chao Lu wrote: Hey, I found my Org refuse to do the overview view correctly. Although I have explicitly set the org-startup-folded to be t. Each time when I open an org file, it still in plain view (not folded). Does it come up with Org-mode turned on at all? or is it in a different major mode? Any interesting messages in the *Messages* buffer? Why do you call your setup file org.el? This might cause problems, because the main org-mode lisp file is org.el as well... - Carsten So I have to M-x org-mode, then it enters the fold view, which is really annoying... Could anybody help me? My version of Emacs is 23.1.90.1 (WinNT), Org-mode is 6.33trans. And my configure for org is included in attachment. Thanks a lot. Chao org.el___ 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 - Carsten - Carsten ___ 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 file containing different local variables
On 22.01.2010 17:17, henry atting wrote: An org file (it contains an explanation on using emacs distraction free for writing) lists on some places LaTeX Local Variables, eg: %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: From then on Emacs does not open this file in org-mode but in latex-mode. Neiter setting Local Variables at the end to org (mode) does not change this behaviour nor if set at the beginning of the file. How about changing the Local Variables: line such that it looks slightly different to emacs, but means the same to LaTeX? Would changing that line to %%% Local\ Variables: solve your problem? HTH, Jan ___ 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: [babel] Moving to babel the whole configuration
Amazing isn't it? I just blew a day by moving to org-babel for my init file and managed to miss the + in my #+end_src marker ... but now its working its all smiles despite another day configuring rather than doing ;) It's an emacs problem in general. A shame there are no jobs configuring your editor Yeah, it's amazing how much time we can spend increasing our productivity... ;-) ___ 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: [babel] Moving to babel the whole configuration
Eric, you hit the nail on the head. Now I'll be spending my Friday night redoing my configs (and probably Saturday, and the next…) On Fri, Jan 22, 2010 at 3:44 PM, Eric S Fraga ucec...@ucl.ac.uk wrote: Amazing isn't it? I just blew a day by moving to org-babel for my init file and managed to miss the + in my #+end_src marker ... but now its working its all smiles despite another day configuring rather than doing ;) It's an emacs problem in general. A shame there are no jobs configuring your editor Yeah, it's amazing how much time we can spend increasing our productivity... ;-) ___ 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] Resumes in orgmode
At Fri, 22 Jan 2010 00:51:06 -0500, Raffi R wrote: Dear list, I've recently taken the first step toward maintaining my resumé in orgmode. I was wondering if anyone had advice, templates, or settings to share for how they render resumés (esp. in LaTeX) using orgmode. Thank you very much, - Raffi. I don't have any specific advice but I can say that I'm quite glad I moved my cv from latex to org as I can now not only generate the same PDF as before but also generate an HTML version that looks good. I did spend quite a bit of time configuration both latex and html specific aspects to get the cv to look good but there was nothing specific to the cv, only my particular look and feel. I based the HTML style sheet on the one used for worg: --8---cut here---start-8--- #+STYLE: link rel=stylesheet type=text/css href=http://orgmode.org/worg/worg.css; / #+STYLE: style type=text/css!-- ... my own customisations here for colours and font sizes particularly #+STYLE: --/style --8---cut here---end---8--- The brilliant thing is that org makes it so much easier to move things around and, when necessary, to comment bits out (one single word on a headline -- how easy can it get?) that are not relevant for some audiences. Worth doing, basically! ___ 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-mobile setup
When I do an org-mobile push, how does it know where to look for the index.org file on my local machine? Do I have to be in the index.org buffer when I do the push? I can see in the documentation how to tell it where the files will go, but I can't see how it knows where they should come from. Thanks, Monty ___ 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