Forcing org to preserve indentation on babel-tangle.

This commit is contained in:
Derek Taylor
2024-04-22 08:39:39 -05:00
parent a07324b0a1
commit 3f34c73dab
2 changed files with 10 additions and 1 deletions

View File

@@ -537,6 +537,8 @@
(require 'org-tempo)
(setq org-src-preserve-indentation t)
(use-package toc-org
:commands toc-org-enable
:init (add-hook 'org-mode-hook 'toc-org-enable))
@@ -720,7 +722,7 @@
(browse-url
(concat "https://github.com/search?l=" language
"&type=code&q=" code))))
(defun dm-search ()
"Search various search engines."
(interactive)

View File

@@ -39,6 +39,7 @@
- [[#org-bullets][Org-Bullets]]
- [[#org-level-headers][Org Level Headers]]
- [[#org-tempo][Org-Tempo]]
- [[#preserve-indentation-on-org-babel-tangle][Preserve Indentation On Org-Babel-Tangle]]
- [[#toc-org][Toc-Org]]
- [[#pdfs][PDFs]]
- [[#perspective][PERSPECTIVE]]
@@ -783,6 +784,12 @@ Org-tempo is not a separate package but a module within org that can be enabled.
(require 'org-tempo)
#+end_src
** Preserve Indentation On Org-Babel-Tangle
#+begin_src emacs-lisp
(setq org-src-preserve-indentation t)
#+end_src
** Toc-Org
Allows us to create a Table of Contents in our Org docs.