diff --git a/.config/emacs/config.el b/.config/emacs/config.el index 73827b2..153af80 100644 --- a/.config/emacs/config.el +++ b/.config/emacs/config.el @@ -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) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 38ffc8d..bd6d1dd 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -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.