From: Hanno Perrey <hanno@hoowl.se>
To: lockywolf@gmail.com
Cc: Org-Mode Mailing List <emacs-orgmode@gnu.org>
Subject: How do I enable exports of code only for the whole file?
Date: Thu, 14 Sep 2023 20:49:11 +0200 [thread overview]
Message-ID: <875y4c4m5q.fsf@hoowl.se> (raw)
In-Reply-To: 87zg1q16yr.fsf@laptop.lockywolf.net
Dear Vladimir,
while I do not have much experience with inline source blocks, at least
for regular source blocks, you can define a file-wide header argument by
adding a file property. This can be even language specific -- inside my
(literate) Emacs config, I have for example at the top of the file for
all elisp blocks:
#+PROPERTY: header-args:emacs-lisp :tangle yes :results silent :comments link
Keep in mind that you have to revert the buffer to update such
properties (I believe pressing C-c C-c with the cursor on the modified
property should also work).
Similarly, you can add ':exports code'. Looking through the manual, I
get the impression that the same should be valid for both regular and
inline code blocks -- but I have not tested this myself.
Best wishes,
Hanno
--
Hanno Perrey
https://hoowl.se
next reply other threads:[~2023-09-14 19:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 18:49 Hanno Perrey [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-13 14:24 How do I enable exports of code only for the whole file? Vladimir Nikishkin
2023-09-13 15:38 ` Fraga, Eric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875y4c4m5q.fsf@hoowl.se \
--to=hanno@hoowl.se \
--cc=emacs-orgmode@gnu.org \
--cc=lockywolf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.