From 0e547c43fd3a43961ed3a67ae5f6494e23a6d21d Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 1 Aug 2015 01:00:38 -0400 Subject: [PATCH] org layer: explicitly set toc-org-max-depth to 10 --- contrib/org/packages.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/org/packages.el b/contrib/org/packages.el index 19ed5cd9f359..d2202e87a8b4 100644 --- a/contrib/org/packages.el +++ b/contrib/org/packages.el @@ -201,7 +201,9 @@ Will work on both org-mode and any mode that accepts plain html." (defun org/init-toc-org () (use-package toc-org :init - (add-hook 'org-mode-hook 'toc-org-enable))) + (progn + (setq toc-org-max-depth 10) + (add-hook 'org-mode-hook 'toc-org-enable)))) (defun org/init-htmlize () (use-package htmlize