Emacs Notes

May 2022

Creating a new buffer

Looks like this will create a new buffer named *Some Buffer* if one doesn't already.

(defconst some-buffer "*Some Buffer*")
(switch-to-buffer some-buffer)

org-src-preserve-indentation

Tried turning off the indentation of source code blocks via:

(setq org-src-preserve-indentation t)

But it freaked things out with the results formatter I'm using to pad them with spaces to make them look prettier.

I think there's something you can do on indivdual source code blocks, but I'm not messing with that for now.

Python code in noweb blocks

When I put python code in one source block and then call it from another block with :noweb yes it breaks if there are blank lines

end of line