* org-babel block with :exports code that gets evaluated on export
@ 2020-04-01 21:25 Sébastien Miquel
2020-05-27 3:25 ` Matthew Lundin
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Miquel @ 2020-04-01 21:25 UTC (permalink / raw)
To: emacs-orgmode
Hi,
Is there a way to have an org-babel block which only exports its code
but still gets evaluated when exporting ?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-babel block with :exports code that gets evaluated on export
2020-04-01 21:25 org-babel block with :exports code that gets evaluated on export Sébastien Miquel
@ 2020-05-27 3:25 ` Matthew Lundin
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Lundin @ 2020-05-27 3:25 UTC (permalink / raw)
To: sebastien.miquel, emacs-orgmode
Sébastien Miquel <sebastien.miquel@posteo.eu> writes:
> Is there a way to have an org-babel block which only exports its code
> but still gets evaluated when exporting ?
I think you can do something like this:
#+begin_src emacs-lisp :exports both :results none
(setq my-variable t)
#+end_src
Or, if you want to pass the results to another block you could use
":results output silent" or ":results value silent."
Best,
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-27 3:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-01 21:25 org-babel block with :exports code that gets evaluated on export Sébastien Miquel
2020-05-27 3:25 ` Matthew Lundin
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).