emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-babel block with :exports code that gets evaluated on export


From: Matthew Lundin
Subject: Re: org-babel block with :exports code that gets evaluated on export
Date: Tue, 26 May 2020 22:25:33 -0500

Sébastien Miquel <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]