Fork me on GitHub
#emacs
<
2017-02-06
>
hkjels09:02:57

@qqq : Not much at this point, it just makes what you wanted to achieve a little less verbose. You could also stick your environment variables into one of your code-fences and just execute it before you tangle I guess

qqq17:02:59

@hkjels : is there anyway to inject your work into the #+begin_src part of org code blocks? My ideal solution would be store everything in the headers

hkjels18:02:14

@qqq: could you ellaborate on what your trying to achieve? It sounds like you could tangle to a file with environment-vars in it and also define the execution-order there or am I missing something?

qqq18:02:52

@hkjels : I have a number of code blocks, which together tangles into a foo.hy file ( https://github.com/hylang ) then I have to run "hy2py foo.hy > foo.py" since I need an actual py file I'd like org to somehow let me specify "after this is all tangled, do a post processing step of running hy2py"

hkjels18:02:15

'org-babel-post-tangle-hook'

qqq18:02:30

@hkjels : for some weird reason, I only searhfed C-h f, but not C-h v, and totally forgot about hooks

richiardiandrea19:02:14

what folks use to paste "strings" in a docstring escaping the apices?

tanzoniteblack19:02:57

if by "escaping the apices", @richiardiandrea , you mean the quotation marks (`"`), you can escape those in a docstring the same way you can in a normal string in Clojure, with a slash: \"

richiardiandrea19:02:36

@tanzoniteblack yep but I would like to paste a string and have the machine do that for me 😄

tanzoniteblack19:02:59

you could probably get something set up via a defadvice with yank and http://smartparens.readthedocs.io/en/latest/automatic-escaping.html

tanzoniteblack19:02:08

but I've never bothered before, so not sure 🙂

richiardiandrea19:02:06

oh smartparens, great

qqq22:02:42

when would emacs xreate the file src/.#main.cljs ?

qqq22:02:58

somehow this happens when I use org, and the existence of this file is causing boot watch to die

tanzoniteblack22:02:27

@qqq I believe that's an autosave file used to not clobber over the existing file; you can change those settings (such as having it go to a directory in your tmp folder instead of in the same directory as the original): https://www.emacswiki.org/emacs/AutoSave