Open alienbogart opened 5 years ago
I really won't have time to do this anytime soon, but it should be really easy if you know some basic Python. If you're interested in implementing it, here's a quick starting point:
{"python": "py", "c++": "cpp"}
etc. yes
case: use fileinput.filename()
to get the name of the org file being read. Handle the case where the script is reading from stdin with fileinput.isstdin()
; abort with an error message. (real org would prompt, but Emacs is interactive) [Question: would "t" be valid too?]line[1]
. The language name will be all lowercase..org
, otherwise append. Nicely handle KeyError
(nicely = crash, but explain why)Otherwise I'll implement when I'll find the time.
I understand I could use
#+BEGIN_SRC emacs-lisp :tangle filename
, but if OrgTangle could parse the:tangle yes
attribute my setup would be simpler. If this is not possible, an alternative would be to be able to get this information as a property of the file, like this:#+PROPERTY: header-args:emacs-lisp :tangle filename