Skip to content

Instantly share code, notes, and snippets.

@fast-90
fast-90 / quarto-setup.el
Last active February 1, 2024 11:44
My setup for Quarto in Emacs
(use-package python
:init
(defun python-comint-filter (output)
"Filter out '__PYTHON_EL_' when sending region to inferior Python shell.
See also: https://stackoverflow.com/questions/75103221/emacs-remove-python-el-eval-message"
(let* ((regexp "^.*__PYTHON_EL_\\(.*\\)\\(.*\\)[[:space:]]*$")
(lines (split-string output "\n"))
(filtered-lines (cl-remove-if (lambda (line)
(or (string-match-p regexp line)