does anybody know how to preserve blank lines at the top of a src block in org mode when tangling? I've got 2 lines in between which are two (not one) empty lines, that I'm hoping to preserve in the tangled file. Normally this would be fine, except that I've got text in between the 2, and try as I might, emacs is not preserving that second empty line for me:
some explanation blah blah
#+begin_src
(some text)
#+end_src
the text below is another logical section that I would like to be separated from the former by 2 empty lines
#+begin_src
(some other text)
#+end_src
I've tried setting org-export-preserve-breaks: t, but that does not do it (I also have org-src-preserve-indentation: t, btw, which does work, so it's not a case of not setting my variables correctly).
This is my desired output in the tangled file:
(some text)
(some other text)Hi all, does anybody know what in my emacs config is causing an extra space on every new line? I am using cider, clojure-ts-mode, and eglot. I am using smartparens-strict-mode as well. I notice in my .el and .py files that I am not running into this issue.
(use-package clojure-ts-mode
:mode (("\\.clj\\'" . clojure-ts-mode)
("\\.cljs\\'" . clojure-ts-mode)
("\\.cljc\\'" . clojure-ts-mode))
:hook ((clojure-ts-mode . eglot-ensure)
(clojure-ts-mode . smartparens-strict-mode)
(clojure-ts-mode . cider-mode)))
(use-package cider
:after clojure-ts-mode
:init
(setq cider-repl-display-help-banner nil
cider-repl-use-clojure-font-lock t
cider-save-file-on-load t
cider-use-completion-at-point nil
cider-repl-pop-to-buffer-on-connect 'display-only
cider-clojure-cli-aliases ":dev"
cider-repl-display-result t)
(add-hook 'cider-ts-mode-hook (lambda () (remove-hook 'completion-at-point-functions #'cider-complete-at-point))))
TIA!Causing an extra space when? When you open a file, when you insert a new line, when you eval something? Is it editing issue or displaying issue (is it really inserting a whitespace or some other space-like symbol, or is it an overlay that makes it look like a space), etc., how are we going to guess what's going on in your setup? There are many different reasons for why it might be happening. Have you tried using clojure-mode instead of clojure-ts-mode? First, identify the event that leads to this, then maybe you can profile it. Emacs has a built-in profiler, learn to use it, it's not that hard. It will save you many times later.
Yeah I’ll give it a try. It is only entering a new line. It’s definitely looks like a whitespace to me but I haven’t played around with the profiler yet. Thank you!
Move the cursor where it is and run describe-char.
fwiw, I think I saw some issues with some indent-mode (or something) not long ago and it manifested on bleeding-edge version of Emacs (I was building stuff from source). But I don't remember how I solved that (or if I even did)