* hard header-args in org-babel-load-file
@ 2019-06-14 22:32 Roman Kalinichenko
0 siblings, 0 replies; only message in thread
From: Roman Kalinichenko @ 2019-06-14 22:32 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Roman Kalinichenko
[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]
Hello org-mode team !
I get the feature that make me so sad.
so I have settings.org file like this:
=====
#+BEGIN_SRC elisp
(setq mac-command-modifier 'meta)
#+END_SRC
#+BEGIN_SRC elisp
(provide 'settings)
#+END_SRC
#+PROPERTY: header-args:elisp :tangle ~/.emacs.d/elisp/settings.el
#+PROPERTY: header-args :results silent :eval no-export :comments org
#+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil
#+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
=====
=====
init.el - like this:
(mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$"))
=====
but in definition of the function org-babel-load-file in org.el in line 243:
==
223 (defun org-babel-load-file (file &optional compile)
243 (car (last (org-babel-tangle-file file exported-file "emacs-lisp")))))
==
So, we have so hard definition "emacs-lisp”,
it have not allow us the custom header-args like -> #+PROPERTY: header-args:elisp :tangle ~/.emacs.d/elisp/settings.el
I think, It’s good idea to make that more flexible.
Thanking for fix it.
[-- Attachment #2: Type: text/html, Size: 2897 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-14 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14 22:32 hard header-args in org-babel-load-file Roman Kalinichenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).