emacs

jf 2025-09-20T00:58:09.545069Z

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)

Arthur 2025-09-20T17:10:16.960679Z

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!

ag 2025-09-20T18:50:55.175269Z

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.

1
Arthur 2025-09-20T19:36:22.556079Z

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!

ag 2025-09-20T21:12:42.346109Z

Move the cursor where it is and run describe-char.

ag 2025-09-20T21:14:15.433449Z

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)