0

Is there way to disable/enable source block on a certain system type?

I've tried this, it didn't work:

#+begin_src shell :eval (eq system-type 'gnu/linux)
echo "On gnu/linux"
#+begin_src 
2

Try

#+begin_src shell :eval (if (eq system-type 'gnu/linux) "yes" "no")
  echo "On gnu/linux"
#+end_src

The expression is evaluated, but the value has to be one of the values that the :eval header expects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.