2

I want to print elisp code result as original but currently it will output with "|" separated. for example:

#+BEGIN_SRC emacs-lisp
(setq my-list '(apple orange peach))
#+END_SRC

The code block will output as below:

#+RESULTS:
| apple | orange | peach |

How can I get output as original style like below:

 #+RESULTS:
 (apple orange peach)
5

Add :results output to the header line:

#+BEGIN_SRC emacs-lisp :results output
1

You can change the default result output type by adding the following code to your init.el:

(add-to-list 'org-babel-default-header-args:emacs-lisp
             '(:results . "output"))

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.