Re: [O] basename of exported subtree?
Hi Matt, On Mon, Jul 20, 2015 at 02:12:17PM -0400, Matt Price wrote: > > Neither of these changed the actual file name, but Suvayu's euggestion -- > setting the EXPORT_FILE_NAME property -- did the trick. Thank you both! I > was unable to find this in the org documentation on my own, though now that > I am able to search it I find that it is listed in 12.3, export settings. The first guess for most subtree export properties is, prepend EXPORT_ to whatever was the keyword for a normal export. So you can have, EXPORT_TITLE, EXPORT_AUTHOR, EXPORT_OPTIONS, etc. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] meta commands and Info manual
On Mon, Jul 20, 2015 at 06:08:56PM -0400, Nick Dokos wrote: > Or maybe showing the indirection explicitly: > > ‘M-S- (org-shiftmetaright) --> (org-table-insert-column)’ Particularly this suggestion would be very helpful, even for long time Org users such as myself. -- Suvayu Open source is the future. It sets us free.
[O] Query on TODO headers for specific words
Hi all this is probably a silly question, but whats the suggested/best way to search (or generate a list/agenda view) only for TODO marked headers contains a specific word. for a use case example, i want to show all TODO headers what have a colleague name in them ('Allan') thx Z
Re: [O] long code blocks making Org Mode very slow
> Post a Gist of your file so I can try it out. > > What is you value of `org-src-fontify-natively'? > Grant Rettke > -- > gcr wisdomandwonder.com | http://www.wisdomandwonder.com/ > “Wisdom begins in wonder.” --Socrates > “All creativity is an extended form of a joke.” --Kay > ((λ (x) (x x)) (λ (x) (x x))) > “Life has become immeasurably better since I have been forced to stop > taking it seriously.” --Thompson > > On Wed, Jul 15, 2015 at 7:22 AM, Angus M gmail.com> wrote: > > I've just discovered that the slow-response is definitely related to font > > locking. If I type M-x font-lock-mode to toggle it off then the typing lag > > problem is solved. > > > > According to the Emacs documentation: > > 'In Emacs 21 and later, turning on font-lock-mode automatically activates > > the new Just-In-Time fontification provided by jit-lock-mode.' > > > > It would appear, therefore, that just-in-time fontification is not taking > > place in the code block with the whole code block being fontified at once - > > and hence the delay. > > > > Any help to confirm this hypothesis and how to enable just-in-time > > fontification in the code block would be appreciated. > > > > Angus M Thanks for your help. Any script of a significant length sandwiched as a snippet in org mode between: #+begin_src python [code] #+end_src causes the slow-down. For example the (arbitrarily chosen) file argparse.py found at https://code.google.com/p/argparse /downloads/detail?name=argparse-1.2.1.tar.gz&can=2&q= is 2400 lines long, and causes a lag of about 1 or 2 seconds for a character to appear on the screen after a key press. The issue is not to do with running the script, (which I haven't tried with this example). My value for org-src-fontify-natively: (setq org-src-fontify-natively t) This issue is of less importance to me now as I think it probably makes sense to run any script of significant length as a stand-alone 'python mode' file, which I'm now doing - rather than as a snippet in 'org mode'. Therefore unless you're curious to solve this problem for its own sake, please don't invest any significant time on trying to sort it out on my behalf. Thanks!
[O] [PATCH] make org-mime-htmlize argument optional
(resending in case improper subject line led to it being overlooked} At present, it's difficult to call org-mime-htmlize noninteractively. This trivial patch fixes that. From ebe5dc40bafb55d019d43efe89957c3b50379553 Mon Sep 17 00:00:00 2001 From: Matt Price Date: Sat, 18 Jul 2015 16:14:33 -0400 Subject: [PATCH 3/3] org-mime.el: fix org-mime-htmlize * org-mime.el: previously, org-mime-htmlize would throw an error if ARG was absent, and thus could not be called uninteractively. ARG is now optional --- contrib/lisp/org-mime.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el index 197c712..43ca041 100644 --- a/contrib/lisp/org-mime.el +++ b/contrib/lisp/org-mime.el @@ -194,10 +194,10 @@ and images in a multipart/related part." str) html-images))) -(defun org-mime-htmlize (arg) +(defun org-mime-htmlize (&optional arg) "Export a portion of an email body composed using `mml-mode' to -html using `org-mode'. If called with an active region only -export that region, otherwise export the entire body." + html using `org-mode'. If called with an active region only + export that region, otherwise export the entire body." (interactive "P") (require 'ox-org) (require 'ox-html) -- 2.4.3
Re: [O] [PATCH] make org-mime-htmlize argument optional
Matt Price writes: > (resending in case improper subject line led to it being overlooked} Thanks. Pushed. I changed the wording a bit. -- The Kids call him Billy the Saint
Re: [O] evaluate TBLFM
On Thu, Jun 11, 2015 at 2:45 PM, Charles Millar wrote: > I am learning how to use org-babel and want to export (LaTeX) a table with > the final column added at final row, which should be inserted. The entire > process would take place upon exporting to LaTeX/pdf > > Desired result (roughly speaking) > > | date | Description | Amount| > |||---| > | 6-7 | blah| 1.00 | > | 6-8 | blah blah|2.00 | > | ||3.00| (this row to be inserted > and then column 3 added) (Also nice if a hline were inserted before the last > row) > > The table is generated from a recutils data base and essentially this is the > set up > > > #+Name: ATable > #+begin_src rec data: Foo.rec :type Bar :fields date,Description,Amount > #+end_src > > #+TBLNAME: ATable > #+TBLFM: @>$>=vsum(@I$>..@>>$>);%.2f > > I have read Using Code Blocks in Org Tables in the Worg Babel Introduction > and searched the lists and am not sure of how to implement this. I'm not sure what you are trying to perform with this code. That probably says more about me than you. Are you loading the contents of a recfile into an Org-Mode table and them performing a manipulation on that table? Is that what you want to do? You said that you are not sure how to implement this and I am not sure what precisely you want to implement.
[O] [ox-latex] setting `org-latex-classes'
Hello, Does one have to `require' ox-latex in ~/.emacs just to set `org-latex-classes'? I can't seem to find the proper hook where I can add to this alist without loading ox-latex. Cheers, -- Seb
Re: [O] [ox-latex] setting `org-latex-classes'
Seb writes: > Does one have to `require' ox-latex in ~/.emacs just to set > `org-latex-classes'? I can't seem to find the proper hook where I can > add to this alist without loading ox-latex. > Use eval-after-load: (eval-after-load "ox-latex" (add-to-list 'org-latex-classes )) Nick
Re: [O] [ox-latex] setting `org-latex-classes'
On Tue, 21 Jul 2015 13:37:39 -0400, Nick Dokos wrote: [...] > Use eval-after-load: > (eval-after-load "ox-latex" (add-to-list 'org-latex-classes )) Thanks, I tried that but I get a "Symbol's value as variable is void: org-latex-classes" when starting Emacs. -- Seb
Re: [O] [ox-latex] setting `org-latex-classes'
Seb writes: > On Tue, 21 Jul 2015 13:37:39 -0400, > Nick Dokos wrote: > > [...] > >> Use eval-after-load: > >> (eval-after-load "ox-latex" (add-to-list 'org-latex-classes )) > > Thanks, I tried that but I get a "Symbol's value as variable is void: > org-latex-classes" when starting Emacs. (eval-after-load "ox-latex" '(add-to-list 'org-latex-classes )) Or (with-eval-after-load 'ox-latex (add-to-list 'org-latex-classes )) (untested) -- Bang bang
Re: [O] yasnippet & babel template conflict
How did you end up resolving this? Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Wed, Jun 24, 2015 at 3:30 PM, Ken Mankoff wrote: > Is there any way to tell yasnippet to evaluate after Org Babel Templates? I > have an " > Or is the best way to handle this conflict by renaming my Org templates or > deleting the Yasnippet snippets? > > Thanks, > > -k. >
Re: [O] yasnippet & babel template conflict
On 2015-07-21 at 16:05, Grant Rettke wrote: > How did you end up resolving this? I've started using yasnippet more - more configurable and universal. I overrode the default org img snippet with my own in ~/.emacs.d/snippets/org-mode/img -k.
Re: [O] New Org-HTML-theme!!
Very nice. Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Tue, Apr 21, 2015 at 2:58 PM, Fabrice Niessen wrote: > Hello, > > I've just published a new theme, called ReadTheOrg, on > https://github.com/fniessen/org-html-themes. > > It is a clone of the great Sphinx theme used in the > http://docs.readthedocs.org/en/latest/ site. It gives a beautiful and > professional style to all your Org docs... > > Wanna test it right away? Just add the following to your Org files: > > --8<---cut here---start->8--- > #+HTML_HEAD: src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js";> > #+HTML_HEAD: src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js";> > #+HTML_HEAD: src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js";> > --8<---cut here---end--->8--- > > and export... > > #+begin_note > While the original theme shines on mobile devices as well, ReadTheOrg > does not stay completely functional. > > I don't have a lot of time to maintain this project due to other > responsibilities. Help is welcome to work on that (and eventually > improve the default structure of the HTML export)! > #+end_note > > PS- I also have written a demo page for the themes that provides > a maximal working support of Org mode syntax. > > Please see the > https://github.com/fniessen/org-html-themes/blob/master/demo/org-mode-syntax.org > page for full examples of headings, code, admonitions, footnotes, tables > and other details. > > Best regards, > Fabrice > > -- > Fabrice Niessen > Leuven, Belgium > http://www.pirilampo.org/ > >
Re: [O] Conditional .gitignore for org-mode files
Say you add ignore for all generated files like mentioned. That will cover what you need because you can `git add --force' file patterns that are on the ignore list. Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Sun, Apr 26, 2015 at 5:39 PM, David Dynerman wrote: > Hi all, > > Sorry in advance, this might be more of a git question than an org-mode > question, but I thought someone on this list might know the answer. > > Is it possible to conditionally gitignore certain files based on files > that are being tracked? > > What I'd like is something like the following gitignore logic: > > if filename.org is tracked by git: >ignore filename.tex, filename.html > > If this isn't possible, does anyone have any nice setups for ignoring > exported versions of org-mode files? > > Thanks, > David > > > >
Re: [O] correlating positions between org-mode and export
Have you looked into customizing the exporter? Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Wed, May 6, 2015 at 5:57 AM, Phillip Lord wrote: > > > > Is there any way to correlate between the position in an org-mode buffer > and an export from that buffer. So, if I have > > > * Header > > With some text > > > Exported to > > Header > > With some text > > I want do be able to match between the position of the "W" in "with" > between the two buffers? > > > Phil >
Re: [O] meta commands and Info manual
Hello, Nick Dokos writes: > I think what's puzzling is that these are not "normal" emacs keybindings > (and therefore not discoverable using the "normal" emacs mechanisms): > there is an extra level of indirection that org mode imposes which you > just have to know about. But I'm not sure what the best way to document > them would be: maybe a section explaining the mechanism plus links (or > footnotes) to go from e.g. the description of M-S- in the table > section to the mechanism section. Or maybe showing the indirection > explicitly: > > ‘M-S- (org-shiftmetaright) --> (org-table-insert-column)’ C-h k M-S- should already show you the indirections. Regards, -- Nicolas Goaziou
Re: [O] New Org-HTML-theme!!
Yes, I agree. Extremely useful. Tom Grant Rettke writes: > Very nice. > Grant Rettke -- Thomas S. Dye http://www.tsdye.com
Re: [O] Indicate on collapsed code block if in "editing mode"
Very personal preference: I set `org-src-window-setup' to `'current-window' to avoid that. Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Tue, May 19, 2015 at 8:35 AM, Nicolas Goaziou wrote: > Rainer M Krug writes: > >> Scrolling delays when having non-collapsed code blocks, as my document >> is relatively long and contains many code blocks (literate >> programming). >> >> I already disabled fontification for the code blocks, but it does not >> make a big difference. > > I meant: why do you need to know if a collapsed code block is being > edited? > > Regards, >
Re: [O] org-version N/A when using git subtree
Generate autoloads with out make? http://orgmode.org/worg/org-hacks.html Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Mon, Jun 22, 2015 at 11:15 AM, Johan Sandblom wrote: > This is off topic, or at least the first paragraph is, but I don't know > where else to ask ... > > I maintain a private git repo where the org-mode git repo is included. I use > it on several machines, both windows and linux, and also on a stick which I > can use on the terribly restricted and firewalled computers at work (which > curiously allow me to run emacs from the stick!). I used to include org-mode > as a "fake submodule" > (http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb) > but wanted to learn more about git so I changed to a real submodule. This > was annoying because then I could no longer just pull from the repo to the > stick and have my new org-mode with me, I needed to update the submodule on > the stick as well, which was more work than before. I then changed to using > a git subtree for org-mode and lots of other bits and pieces that I wanted > handy, even behind the firewall at work. This works great except for one > thing: > > org-version is set to N/A (on topic again I hope). As far as I have been > able to gather with my non-existent developer skills the org-version stems > from mk/default.mk and so could be adjusted in local.mk, but I am unable to > figure out where I should get it from, and how to adjust it. Can you > enlighten me? > > Johan > > -- > Johan Sandblom, MD PhD > m +46735521477 > What is wanted is not the will to believe, but the > will to find out, which is the exact opposite > --Bertrand Russell >
Re: [O] Plotting with gnuplot
Aloha Michael, Does the :session header argument help? All the best, Tom Michael Welle writes: > Hello, > > I have several sections in my org files that plot data with gnuplot. The > structure usually looks like that: > > #+tblname: foo > | d| y | > |--+--| > | [2015-01-03 Sat] | 2014 | > | [2013-12-31 Tue] | 2013 | > #+begin_src gnuplot :var data=foo :file img/foo.png > set terminal png > set xlabel foo > ... > plot data using 1:2 with boxes title '' > #+end_src > > > The problem is that the gnuplot scripts are evaluated in the same > gnuplot instance. If I set, for instance, xlabel in one gnuplot script > it is still set in the next script. That is quite annoying. I tried to > end the scripts with a quit statement, but that results in a 'current > buffer has no process' error. A reset statement at the beginning of the > script makes the situation better, but isn't a solution. Any ideas? > > Regards > hmw -- Thomas S. Dye http://www.tsdye.com
Re: [O] long code blocks making Org Mode very slow
When I have the cursor inside of the code block for the code, moving up or done one line or one page takes 2-3 seconds. Grant Rettke -- g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates “All creativity is an extended form of a joke.” --Kay ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Tue, Jul 21, 2015 at 6:09 AM, Angus M wrote: >> Post a Gist of your file so I can try it out. >> >> What is you value of `org-src-fontify-natively'? > >> Grant Rettke >> -- >> gcr wisdomandwonder.com | http://www.wisdomandwonder.com/ >> “Wisdom begins in wonder.” --Socrates >> “All creativity is an extended form of a joke.” --Kay >> ((λ (x) (x x)) (λ (x) (x x))) >> “Life has become immeasurably better since I have been forced to stop >> taking it seriously.” --Thompson >> >> On Wed, Jul 15, 2015 at 7:22 AM, Angus M gmail.com> > wrote: >> > I've just discovered that the slow-response is definitely related to font >> > locking. If I type M-x font-lock-mode to toggle it off then the typing lag >> > problem is solved. >> > >> > According to the Emacs documentation: >> > 'In Emacs 21 and later, turning on font-lock-mode automatically activates >> > the new Just-In-Time fontification provided by jit-lock-mode.' >> > >> > It would appear, therefore, that just-in-time fontification is not taking >> > place in the code block with the whole code block being fontified at once - >> > and hence the delay. >> > >> > Any help to confirm this hypothesis and how to enable just-in-time >> > fontification in the code block would be appreciated. >> > >> > Angus M > > Thanks for your help. > > Any script of a significant length sandwiched as a snippet in org mode > between: > #+begin_src python > [code] > #+end_src > > causes the slow-down. > > For example the (arbitrarily chosen) file argparse.py found at > https://code.google.com/p/argparse > /downloads/detail?name=argparse-1.2.1.tar.gz&can=2&q= > is 2400 lines long, and causes a lag of about 1 or 2 seconds for a character > to appear on the screen after a key press. > > The issue is not to do with running the script, (which I haven't tried with > this example). > > My value for org-src-fontify-natively: > (setq org-src-fontify-natively t) > > This issue is of less importance to me now as I think it probably makes > sense to run any script of significant length as a stand-alone 'python mode' > file, which I'm now doing - rather than as a snippet in 'org mode'. > Therefore unless you're curious to solve this problem for its own sake, > please don't invest any significant time on trying to sort it out on my > behalf. Thanks!
Re: [O] meta commands and Info manual
Nicolas Goaziou writes: > Hello, > > Nick Dokos writes: > >> I think what's puzzling is that these are not "normal" emacs keybindings >> (and therefore not discoverable using the "normal" emacs mechanisms): >> there is an extra level of indirection that org mode imposes which you >> just have to know about. But I'm not sure what the best way to document >> them would be: maybe a section explaining the mechanism plus links (or >> footnotes) to go from e.g. the description of M-S- in the table >> section to the mechanism section. Or maybe showing the indirection >> explicitly: >> >> ‘M-S- (org-shiftmetaright) --> (org-table-insert-column)’ > > C-h k M-S- should already show you the indirections. > Yes, it does - I should have tried it out before spouting off: you very thoughtfully added the indirections to the doc string of org-shiftmetaright. Thanks for doing that and for pointing it out. If I ever knew about it in the past, I certainly had forgotten it. For my part I'm happy (and I suspect Suvayu is as well), so I guess it's back to the OP: what, if anything, should be changed? -- Nick
Re: [O] Query on TODO headers for specific words
Thats exactly what i was looking for. does anyone know or show me an example of how to create a org-agenda-custom-commands with the 'S' from above where i would go C-a 'x' and it would auto search all TODO headers for a custom string? thx so much! Z On Tue, Jul 21, 2015 at 6:10 PM, Jorge A. Alfaro-Murillo < jorge.alfaro-muri...@yale.edu> wrote: > Xebar Saram writes: > > whats the suggested/best way to search (or generate a list/agenda view) >> only for TODO marked headers contains a specific word. for a use case >> example, i want to show all TODO headers what have a colleague name in them >> ('Allan') >> > > Probably: > > M-x org-agenda S Allan > > Best, > -- > Jorge. >