Re: [O] links-9.0 v3

2016-07-14 Thread John Kitchin
drawer line." (user-error "Abort")))) ((equal type "id") (require 'org-id) - (funcall (nth 1 (assoc "id" org-link-protocols)) path)) + (funcall (org-link-get-parameter type :follow)

Re: [O] Substitute for (bh/org-agenda-to-appt)

2016-07-13 Thread John Kitchin
You could move it to the org-mode-hook. On July 13, 2016, at 7:21 AM, Louis Turk wrote: With this fuction appointments are set up when Emacs starts: (bh/org-agenda-to-appt) I would like to substitute it with a function that sets the appointments up when org-mode

Re: [O] Can I quote/ref value in the output table?

2016-07-12 Thread John Kitchin
: : [[1, 2], [3, 4]] If so, give your sql block a name, and use it as a variable in some other block. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http

Re: [O] make specific orgmode code blocks read only?

2016-07-11 Thread John Kitchin
> I was wondering if possible at all and anyone knew of a way to make > specific orgmode code blocks read only? the rest of the org buffer would be > normal just specific code blocks > > best > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Ca

Re: [O] workflow, matlab+latex in org file

2016-07-11 Thread John Kitchin
\left(e + p\right)}{{\left(\left(e + p\right)\, R^2 + e\right)}^2} \end{array}\right) #+END_LaTeX Uwe Brauer writes: >>>> "John" == John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> Here is an example using sympy. I think you will have to wrap the matla

Re: [O] workflow, matlab+latex in org file

2016-07-11 Thread John Kitchin
, such that only the > results, which have been converted to latex are exported and all the > matlab command should be ignored, that is in that case: > ltxjac but nicely surrounded by say $. > > Anybody has an idea how to do this efficiently? > > thanks > > regards > >

Re: [O] how to speed up an org-mode file?

2016-07-10 Thread John Kitchin
I find it sometimes helpful to narrow to a section in large documents. On July 10, 2016, at 3:37 PM, Leo Noordhuizen wrote: Yes. You obviously have ample resources in that area! Op zo 10 jul. 2016 21:05 schreef Sharon Kimble : Leo

Re: [O] Dynamic links

2016-07-10 Thread John Kitchin
o advice the `org-return' function. > > - Despite the fact that the `TEST-123' has a `htmlize-link' text property, > it errors out with "No link found". To fix that, I needed to add a hook to > `org-open-at-point-functions'. > > - I had to copy a bunch of code from

Re: [O] links-9.0 v3

2016-07-09 Thread John Kitchin
y #'org-open-file + (car fields) + app + (cond ((not option) nil) +((org-string-match-p "\\`[0-9]+\\'" option) + (list (string-to-number option))) +(t (list nil + (org-link-unescape option)

Re: [O] links-9.0 v3

2016-07-08 Thread John Kitchin
K On Friday, July 8, 2016, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > John Kitchin <jkitc...@andrew.cmu.edu <javascript:;>> writes: > > > Here are the new revisions that implement the previous solution you > > suggested and that incorporate the commit m

Re: [O] links-9.0 v3

2016-07-07 Thread John Kitchin
Here are the new revisions that implement the previous solution you suggested and that incorporate the commit merges as far as I can see. WDYT? commit 290213ef3eee86175d5a6b15c7b6173afd0c1616 Author: John Kitchin <jkitc...@andrew.cmu.edu> Date: Tue Jul 5 10:38:42 2016 -0400

Re: [O] links-9.0 v3

2016-07-07 Thread John Kitchin
shortly after this mail. I have some other responses below because there are some things I don't totally understand yet. Nicolas Goaziou writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >>> Here is the gotcha. `type' is "file", not "file+sys" or &

Re: [O] links-9.0 v3

2016-07-07 Thread John Kitchin
t;> +("file" :complete 'org-file-complete-link) >> +("file+emacs") ("file+sys") >> +("news") ("shell") ("elisp") >> +("doi") ("message") ("help")) > > See above about "file+emacs" and "file+sys", which are not valid types. Those either need to be here for link regexps, or hard-coded somewhere else though. Speaking of which, should coderef be a link type, so it can be removed as a hard-coded string that I referenced above? > Regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] links-9.0 v3

2016-07-06 Thread John Kitchin
I think I have addressed these. Revised commits appended and at https://github.com/jkitchin/org-mode/tree/link-9.0-v3. The new org-link-set-parameters function you suggested works fine as far as I can tell. WDYT? commit f8bb180150514b92535506601c747001da305610 Author: John Kitchin <jk

Re: [O] links-9.0 v3

2016-07-06 Thread John Kitchin
Thanks. I responded to some below. I didn't respond to all of them. I will revise the commits accordingly and send a new version. Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> Your version doesn't let you add properties to l

[O] links-9.0 v3

2016-07-06 Thread John Kitchin
e squashed everything together that makes sense. Let me know if you have further thoughts. commit 92db211ca9f95d5624b83615c83c62d8c703ca00 Author: John Kitchin <jkitc...@andrew.cmu.edu> Date: Tue Jul 5 10:38:42 2016 -0400 Update the contrib manual diff --git a/contrib/orgmanu

Re: [O] canonical way to go beginning of a link

2016-07-06 Thread John Kitchin
what I expect too, just not what I want ;) > > Maybe it is a good idea to move point forward for at least count > of chars in search pattern before the search executes? This is a great idea, thanks! > > Greets, Jens Haustedt -- Professor John Kitchin Doherty Hall A207F Department of Chemi

Re: [O] Draft of links-9.0

2016-07-05 Thread John Kitchin
Thanks for the feedback. Here is a second round of revised commits. I addressed the comments you made. I have not pushed these to the branch yet. Let me know what you think about these. Thanks for the help! commit f5bcdaac6e3d4507c934b8872c4a53c4d90e9143 Author: John Kitchin <jk

Re: [O] Draft of links-9.0

2016-07-05 Thread John Kitchin
Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I have completed a draft of links-9.0 >> (https://github.com/jkitchin/org-mode/tree/link-9.0). This centralizes >> almost all link properties into a variable `org-link-

[O] Draft of links-9.0

2016-07-05 Thread John Kitchin
ketp) (save-excursion (goto-char start) (save-match-data (cl-loop for num in (split-string path ",") for face in (list '(:foreground "red") '(:foreground "green")

[O] canonical way to go beginning of a link

2016-07-04 Thread John Kitchin
approach though. say I want to search back for "cite:" with point at the ^ position below: some text cite:a-key ^ If I run (re-search-backward "cite:") at the point above, it does not go to the point 2 characters back. Any ideas? -- Professor John Kitchin Doherty H

Re: [O] patch for custom colored links in org-mode

2016-07-03 Thread John Kitchin
Nicolas Goaziou writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I agree, it doesn't make sense to use it for customization. OTOH, it >> also adds the link type to org-link-types, rebuilds the regexp and the >> org-link-protocols. > > It is possib

[O] :store for new link model

2016-07-03 Thread John Kitchin
functions 'org-vm-store-link) ./contrib/lisp/org-wl.el:113:(add-hook 'org-store-link-functions 'org-wl-store-link) -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] patch for custom colored links in org-mode

2016-07-02 Thread John Kitchin
> 3. Then we extend it with new properties, i.e., :display, :echo >and :face. > > 4. Document the changes in the manual and ORG-NEWS file. > > You have mostly worked out the third part of the process. Do you want to > take a stab at any of the other steps? Or do you prefer me

[O] [ANN] ox-clip on MELPA

2016-07-02 Thread John Kitchin
hope you find it useful! -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] patch for custom colored links in org-mode

2016-07-01 Thread John Kitchin
.fr> wrote: John Kitchin <jkitc...@andrew.cmu.edu> writes: > I agree, it doesn't make sense to use it for customization. OTOH, it > also adds the link type to org-link-types, rebuilds the regexp and the > org-link-protocols. It is possible to rebuild regexps upon modifying a defcusto

Re: [O] patch for custom colored links in org-mode

2016-07-01 Thread John Kitchin
+1 for all this. Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> Indeed, I based this approach off a patch Rasmus posted some time ago for >> colored blocks ;) >> >> It is also similar to some other approaches

[O] patch for custom help-echo on links

2016-07-01 Thread John Kitchin
I have attached a patch to allow org-link-display-parameters (introduced in a previous patch for custom faces) to also provide a custom tooltip. It can be a string or a function, and if neither the old behavior is used. WDYT? -- Professor John Kitchin Doherty Hall A207F Department of Chemical

[O] colored-links take 2

2016-06-30 Thread John Kitchin
'plain lk) '(org-activate-plain-links (0 'org-link))) + (when (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link))) (when (memq 'radio lk) '(org-activate-target-links (1 'org-link t))) (when (memq 'date lk) '(org-activate-dates (0 'org-date t))) (when (memq 'footnote lk)

Re: [O] patch for custom colored links in org-mode

2016-06-30 Thread John Kitchin
I think I have attached the right patch that does this. Let me know what you think. Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I took a stab at this implementation here: >> >> https://github.com/jkitchin/org-

Re: [O] ox-clip.el

2016-06-30 Thread John Kitchin
inputencoding UTF-8’ fixes it. > I added this to the macOSX command. thanks for the solution! > > Really cool! That’s what I want. > > Any workaround for that unwanted evil behaviour? I rely on evil a lot. > > >> On Jun 29, 2016, at 10:25 PM, John Kitchin <jkitc...@andr

Re: [O] ox-clip.el

2016-06-29 Thread John Kitchin
‘Under Yosemite > (and later) pasteboard access seems to work fine without the program from > this repository.’ but this is not true in my laptop in OS X El Capitan > 10.11.5. That could be true. I don't have access to anything that modern yet. > >> On Jun 29, 2016, at 9:16

Re: [O] ox-clip.el

2016-06-29 Thread John Kitchin
its not there yet. I would like some people to test it out a little maybe? get some feedback on it. Then it will probably go to MELPA. Jiege Chen writes: > John Kitchin <jkitc...@andrew.cmu.edu> wrote: >> Hi everyone, >> >> I extended the work I did here >>

[O] ox-clip.el

2016-06-28 Thread John Kitchin
' that should copy a region in an org-file with formatting to paste into other applications on Windows, Mac and Linux. https://github.com/jkitchin/scimax/blob/master/ox-clip.el Try it out! -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University

Re: [O] patch for custom colored links in org-mode

2016-06-28 Thread John Kitchin
mode. doi:10.1021 bracketed: [[doi:test][what]] bracketed file link: [[file:test.org][test]] Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I tried this aproach to enable custom colored l

Re: [O] patch for custom colored links in org-mode

2016-06-28 Thread John Kitchin
rse, this is documented in the manual, but very often, looking at >> defcustoms in a library is of invaluable help. > > Maybe a defcustom consisting of an alist of anonymous faces: > > '((R ((:background "red"))) > (emacs-lisp ((:background "blue" --

Re: [O] patch for custom colored links in org-mode

2016-06-28 Thread John Kitchin
ewhere else. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Tue, Jun 28, 2016 at 4:11 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

Re: [O] indicate external links

2016-06-27 Thread John Kitchin
gt; -- > The Kafka Pandemic: http://thekafkapandemic.blogspot.com > > The disease DOES progress. MANY people have died from it. And > ANYBODY can get it. > > Denmark: free Karina Hansen NOW. > > -- John ------- Professor John Kitchin Doherty Hal

Re: [O] Programmatically constructing org documents

2016-06-27 Thread John Kitchin
(table-cell '() ("6"))) (table-row '() (table-cell '() ("6")) (table-cell '() ("7") nil) #+END_SRC that is sure to be handy one day ;) Charles C. Berry writes: > On Mon, 27 Jun 2016, John Kitchin wrote: > >> After

Re: [O] Programmatically constructing org documents

2016-06-27 Thread John Kitchin
ormatting. So the question is which is easier for your situation, and I >> would say easier is "correct" ;) > > Fair enough. Sounds good. Thank you. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

[O] patch to make descriptive display link type dependent

2016-06-26 Thread John Kitchin
in the descriptive form. Thoughts? >From 591cd3487591dca3d55c1c7a6c2c6039771388ef Mon Sep 17 00:00:00 2001 From: John Kitchin <jkitc...@andrew.cmu.edu> Date: Sun, 26 Jun 2016 18:27:51 -0400 Subject: [PATCH] make individual bracket links invisible To: emacs-orgmode@gnu.org if org-

Re: [O] using property drawer to track header creation and last change?

2016-06-26 Thread John Kitchin
wer to to track > header creation and last change of the header? anyone using something like > this? > > best > > Z > -- John ------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA

Re: [O] Programmatically constructing org documents

2016-06-26 Thread John Kitchin
s (such as `format' and > `insert') to construct org syntax directly? > > Thank you, > Arun Isaac. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

[O] [PATCH] Make links colored if a custom link face exists.

2016-06-26 Thread John Kitchin
--- lisp/org.el | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index af68539..f1c500d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5851,14 +5851,19 @@ prompted for." "Add link properties for plain links." (when (and

[O] patch for custom colored links in org-mode

2016-06-26 Thread John Kitchin
s (0 'org-link))) + (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link))) (if (memq 'radio lk) '(org-activate-target-links (1 'org-link t))) (if (memq 'date lk) '(org-activate-dates (0 'org-date t))) (if (memq 'footnote lk) '(org-activate-foo

Re: [O] org-ref: customizing bibtex key names generated by doi-utils

2016-06-23 Thread John Kitchin
uld be to modify HTML export to change citation > link text, but that seems like the wrong place to make this change. > > Any advice is appreciated! > David -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] cache issue

2016-06-22 Thread John Kitchin
This also seems to have resolved itself with an update of org-mode. Sorry for the noise. Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I am having an issue with the org cache system. The scenario is I have >> an org-ref

Re: [O] when cursor is right after link Enter opens link

2016-06-22 Thread John Kitchin
Yep. an upgrade fixed it. Thanks, Nicolas Goaziou writes: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I noticed that when my cursor is right after a link, and I press enter, >> the link opens. Is this new in org 8.3? I don't

[O] when cursor is right after link Enter opens link

2016-06-22 Thread John Kitchin
I noticed that when my cursor is right after a link, and I press enter, the link opens. Is this new in org 8.3? I don't recall it happening in 8.2 Is there a configuration variable to stop that? Thanks, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie

[O] cache issue

2016-06-22 Thread John Kitchin
in the cache. If I reset the cache, it works fine afterwards. I could add the cache reset to the rearrangment code to fix this, but I wondered if that is the right thing to do. Any thoughts? Thanks, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University

Re: [O] extract a region from a table and export it

2016-06-17 Thread John Kitchin
Those look like characters somehow to me. What org version are you using? and what emacs? John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http

Re: [O] extract a region from a table and export it

2016-06-17 Thread John Kitchin
:var c2=tab2[,2] >> (-zip-with 'list c0 c2) >> #+END_SRC > > That does not work for me (I loaded dash) > > Here is the backtrace > I also deleted the "-" in (-zip-with 'list c0 c2) to obtain > (zip-with 'list c0 c2), but zip-with is not known as a

Re: [O] extract a region from a table and export it

2016-06-16 Thread John Kitchin
lear to me how you could extract say the first and the > third column from the following table > > | 1 | a | 3 | > | 2 | b | 4 | > | 3 | c | 6 | > | 4 | d | 7 | > > Using your approach? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] extract a region from a table and export it

2016-06-16 Thread John Kitchin
var data=example-table[,0] >> data >> #+END_SRC > >> #+RESULTS: >> | 1 | 2 | 3 | 4 | > > Thanks that looks like a very simple solution, however how can one > obtain the first column of the table in column fo

Re: [O] bibliography as part of the source document?

2016-06-15 Thread John Kitchin
al no-export" on the bibtex block. > Hopefully this is enough to help you solve it. Feel free to post an MWE if > you get it working. > > -k. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] extract a region from a table and export it

2016-06-14 Thread John Kitchin
(nth i data)) collect (list (nth 0 row) (nth 2 row))) #+END_SRC #+RESULTS: | P1 | 89 | | P3 | 98 | Uwe Brauer writes: >>>> "John" == John Kitchin <jkitc...@andrew.cmu.edu> writes: > > > >> or, rows 0, 1 and 4. > >> #+BEGIN_SRC

Re: [O] extract a region from a table and export it

2016-06-14 Thread John Kitchin
om a huge table and > convert it to say CSV? > > Uwe Brauer -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] issue w/ org-ref setup: C-c ] works, but C-u C-C ] not

2016-06-11 Thread John Kitchin
ve any labels, so it looks empty. > of modifying that menu, now I only get to see "pattern:" in the minibuffer. > > Thanks, > Andreas -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] Changing org-block background with org-src-fontify-natively

2016-06-10 Thread John Kitchin
our. > > That’s possible with the attache patch. An example of the horrors you can > subject yourself to is also attached. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] interesting dilemma with ob-ipython

2016-06-10 Thread John Kitchin
ines . "no") (:tangle . "no"))) (defalias 'org-babel-execute:jupyter-hy 'org-babel-execute:ipython) (add-to-list 'org-structure-template-alist '("hy" "#+BEGIN_SRC jupyter-hy\n?\n#+END_SRC" "\n?\n")) #+END

Re: [O] HTML export without org title as H1?

2016-06-10 Thread John Kitchin
.. > #+end_html > > ** Here starts the first real head > > .. > and so on > > Any help appreciated, > > Christian -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

[O] interesting dilemma with ob-ipython

2016-06-09 Thread John Kitchin
me.asctime)) #+END_SRC #+RESULTS: : hello world : Thu Jun 9 17:26:56 2016 Here is the dilemma: If I special edit this, it is in python-mode, not hy-mode. And similarly on export, it is highlighted as ipython, not hy-lang. Any thoughts on how to address these? -- Professor John Kitchin Doherty

Re: [O] colored code background in org 8.3

2016-06-05 Thread John Kitchin
Thanks, this worked perfectly! Rasmus writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I am finally getting around to switching over to org 8.3... One thing I >> miss already is the colored background in the code blocks. I recall that >> was removed

Re: [O] default visibility of results drawer

2016-06-05 Thread John Kitchin
Thanks. The documentation wasn't too clear on if it should be a string or symbol. This worked for me to show everything: (setq org-startup-folded "showeverything") Matt Lundin writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> Is it possible to get the d

[O] default visibility of results drawer

2016-06-04 Thread John Kitchin
Is it possible to get the default visibility of results drawers to be open? They are closed when I first open a file, and I have to manually open them to see the contents. thanks! -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University

Re: [O] Restricting admisible tags depending on header

2016-06-04 Thread John Kitchin
od (org-fast-tag-selection runs out of letters). > > I'm thinking on advising org-fast-tag-selection and prune the list of > acceptable tags before calling the real function, but maybe there is a > better method. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engi

Re: [O] babel and bibliography

2016-06-02 Thread John Kitchin
tation and examples using ox-bibtex, but those don't seem to > apply any longer with newer versions or org-mode. I'm running 8.3.4 in Emacs > 25.0.94.1 (5th pretest for version 25.1). > > Regards, > > Joseph -- Professor John Kitchin Doherty Hall A207F Department of Chemic

Re: [O] assign tags via helm/avy?

2016-06-01 Thread John Kitchin
tag is added? >>> >>> best >>> >>> Z >>> >> >> If you use the ivy-family of list completion, check out the counsel >> package, and the cousel-org-tag function in there. >> >>> -- >> >> -- >> Kaushal Modi >> -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

[O] colored code background in org 8.3

2016-06-01 Thread John Kitchin
Hi all, I am finally getting around to switching over to org 8.3... One thing I miss already is the colored background in the code blocks. I recall that was removed. Has anyone looked into a way to put it back? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering

Re: [O] assign tags via helm/avy?

2016-05-30 Thread John Kitchin
ouptags) > ("allan" . ?a) > ("bob" . ?o) > ("joel" . ?j) > ("david" . ?d) > ("boris" . ?b) > ("massimo" . ?s) > (:endgrouptag) > > anyone know of a way to quick add tags via a helm/avy i

Re: [O] Mixing Python2 and Python3 blocks in one file

2016-05-17 Thread John Kitchin
t; With the parameter above as a workaround, I can accomplish the > things I want to do for now. However, I still do think that Python2 > and Python3 as different languages demand different block > identifiers. > > #+BEGIN_SRC python -> defaults to the default python interpreter > #+BEGIN

Re: [O] org-ref breaks org-repair-export-blocks

2016-05-11 Thread John Kitchin
: .*?%s[ \t]*$" back-end-re))) > (while (re-search-forward include-re nil t) >(let ((element (save-match-data (org-element-at-point > (when (and (eq (org-element-type element) 'keyword) > (string= (org-element-propert

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread John Kitchin
C-x b something.org >> 4. M-x org-mode >> 5. Hit "C-u *" >> 6. You should see an asterisk being displayed, which is actually a >> prettified version of "\ast{}" which is what actually got inserted. >> >> Also, please report your emacs and org-

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-05-09 Thread John Kitchin
this isbn, but gives a better error. I assume you were looking for Seveneves: A Novel? Maybe it is too new for xisbn. BTW: Did you read it? Is it good? Julien Cubizolles writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> John Kitchin <jkitc...@andrew.cmu.e

Re: [O] speed keys for plain lists?

2016-05-09 Thread John Kitchin
-key >> >> (define-key org-mode-map (kbd "KEY") #'COMMAND) > > I guess that OP would like some key to do this only when in plain list. > It's slightly less easy then, and the preferred way (advice/new > function/maybe some hook) might depend on the particular choice of

Re: [O] Special alignment in org-mode

2016-04-28 Thread John Kitchin
he actual > content beneath the headers stays to the side of the buffer (as pictured: > http://i.imgur.com/nGv8XBI.png). > Would there be any way to fix this? > > David > > On Wed, Apr 27, 2016 at 9:47 AM John Kitchin <jkitc...@andrew.cmu.edu> > wrote: > >&g

Re: [O] pandoc-style citations

2016-04-27 Thread John Kitchin
hy we don't currently do more than the simple pre/post text. I don't have anything against supporting more, I just don't know how to do it, or when it would be right ;) > > thanks again and best wishes > alex -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engin

Re: [O] pandoc-style citations

2016-04-27 Thread John Kitchin
as \cites. However my > home-brew link solution, stuffing the multiple pre- and posts- with > separator into the link description is unwieldy - difficult to write, > hard to read and easy to get wrong or breaking output. > > thanks > alex -- Professor John Kitchin Doherty Hall A20

Re: [O] Special alignment in org-mode

2016-04-27 Thread John Kitchin
r 2 > Some content here > *** Header 3 > > Thanks in advance! > David -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] How to have a controllable popup?

2016-04-27 Thread John Kitchin
d of the page. > > I've tried to set it up with workgroups, and also tabs of the relevant > files next to each other in tabbar, but neither of these really worked. > > Thanks > Sharon. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon Un

Re: [O] how does invisibility impact org?

2016-04-26 Thread John Kitchin
normally I would use narrowing, but I want to see all the verses in the document at once., so I was going to make all the other text temporarily invisible. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon

[O] how does invisibility impact org?

2016-04-26 Thread John Kitchin
nvisible 'not-verse-block (defun unhide () (interactive) (remove-from-invisibility-spec 'not-verse-block) (ov-clear 'invisibility 'not-verse-block)) -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-78

Re: [O] State of things: Email with orgmode?

2016-04-26 Thread John Kitchin
the latex images? I use a > black > background and it's impossible to see the latex images. > > Best regards, > > Jeremie -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] State of things: Email with orgmode?

2016-04-25 Thread John Kitchin
That is nice! John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Apr 25, 2016 at 12:48 PM, Eric S Fraga <e

Re: [O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread John Kitchin
option in the latest version of org-mode? > > Regards, > Lohan -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] [PATCH] Make lexical eval default for elisp src blocks

2016-04-20 Thread John Kitchin
I think it would be fine to make :lexical "no" be the default, since that should preserve what we are used to. Users can alway set a different default of their own, or make it "yes" when they know it is needed. Nicolas Goaziou writes: > Hello, > > John Kitchin <

Re: [O] [PATCH] Make lexical eval default for elisp src blocks

2016-04-18 Thread John Kitchin
thanks. I think I have addressed these in a new patch I just submitted. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http

[O] [PATCH] Make lexical eval default for elisp src blocks

2016-04-18 Thread John Kitchin
Set default in `org-babel-default-header-args:emacs-lisp'. Add an optional argument to the eval function. --- etc/ORG-NEWS | 11 +++ lisp/ob-emacs-lisp.el | 33 - 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/etc/ORG-NEWS

Re: [O] [PATCH] Make lexical eval default for elisp src blocks

2016-04-18 Thread John Kitchin
Thanks for the feedback. I have a few questions below. On Mon, Apr 18, 2016 at 12:38 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > > > Set default in `org-babel-default-header-args:emacs-lisp'

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-04-18 Thread John Kitchin
I found a (save-buffer) in the bibtex entry clean functions and took that out. I think it solves this problem. Julien Cubizolles writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> thanks for the report. I think I have fixed it in a recent push. > > It now get

Re: [O] [PATCH] Make lexical eval default for elisp src blocks

2016-04-18 Thread John Kitchin
ere behavior changes, or stops working. Adam Porter writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > > Forgive my ignorance--I haven't really dug into lexical scoping yet--but > what is the basic effect will this change have on elisp code blocks? > Say I'm doi

Re: [O] funny emacs-lisp macro behavior in org-babel related to lexical-binding

2016-04-17 Thread John Kitchin
thanks, this is the page I was looking for. Charles C. Berry writes: > On Sat, 16 Apr 2016, John Kitchin wrote: > >> I submitted a patch for this. I still am not sure I did it quite right. >> Is there a page anywhere that outlines what to do? >> >> e.g. >> &

Re: [O] funny emacs-lisp macro behavior in org-babel related to lexical-binding

2016-04-16 Thread John Kitchin
I submitted a patch for this. I still am not sure I did it quite right. Is there a page anywhere that outlines what to do? e.g. create a branch, make changes, how to make patches, and mail them etc... or some other preferred method? thanks, Nicolas Goaziou writes: > John Kitchin <

[O] [PATCH] Make lexical eval default for elisp src blocks

2016-04-16 Thread John Kitchin
Set default in `org-babel-default-header-args:emacs-lisp'. Add an optional argument to the eval function. --- etc/ORG-NEWS | 11 +++ lisp/ob-emacs-lisp.el | 29 - 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/etc/ORG-NEWS

Re: [O] funny emacs-lisp macro behavior in org-babel related to lexical-binding

2016-04-16 Thread John Kitchin
That sounds fine to me. Would you then use :lexical nil in a header to turn it off? or a new custom variable? John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803

[O] funny emacs-lisp macro behavior in org-babel related to lexical-binding

2016-04-14 Thread John Kitchin
params) to turn on lexical eval if you want it. What do you think? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] Org-mode export doesn't work anymore after moving to OsX

2016-04-13 Thread John Kitchin
de so I might merge some of the things in my setup files and just use > your configuration. What's the best way to get it as the default on > macbook? I know I can link the init.el to .emacs but how do I make sure it > knows where the jmax folder resides on the system. > > > On Wed,

Re: [O] Org-mode export doesn't work anymore after moving to OsX

2016-04-12 Thread John Kitchin
nDocument schema files installed > and: Symbol's function definition is void: exec-installed-p > ``` > > cheers, > Jeff -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

Re: [O] lisp babel

2016-04-11 Thread John Kitchin
llo-world > #+header: :var message="Hello World!" :exports both > #+begin_src lisp > (princ message) > #+end_src > > In the past, it worked. I thought either slime or sly were needed. > > I'm using org version release_8.3.4-718-g634e12.dirty and GNU Emacs 25.1.50.1.

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-04-04 Thread John Kitchin
ass.") (author . "Feynman, Leighton, Sands.") (ed . "8th > print.") (year . "1996") (isbn . ["0201500647"]) ...)] > --8<---cut here---end------->8--- > > However, isbn-to-bibtex-lead gets me to the righ

<    3   4   5   6   7   8   9   10   11   12   >