mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-19 13:46:17 +10:00
Forcing org to preserve indentation on babel-tangle.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user