Add toc-org hook

This commit is contained in:
Riyyi
2020-07-19 01:26:09 +02:00
parent 0bec05bd6f
commit 4443580000
+3
View File
@@ -838,6 +838,9 @@ Evil command aliases.
;; Highlight parenthesis ;; Highlight parenthesis
(add-hook 'prog-mode-hook 'show-paren-mode) (add-hook 'prog-mode-hook 'show-paren-mode)
;; Enable 'table of contents' in org
(add-hook 'org-mode-hook 'toc-org-mode)
;; C++ // style comments in c-mode ;; C++ // style comments in c-mode
(add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0))) (add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0)))