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"

1 Answer 1



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

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 and acknowledge you have read our privacy policy.

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