From ab38e2384b1465bd91c09c36fb9b2af9ffcf2431 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 10 Apr 2020 18:35:06 +0200 Subject: [PATCH] Restore default TAB behavior in Org mode --- config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.org b/config.org index 8ba11b9..e2c2a7b 100644 --- a/config.org +++ b/config.org @@ -8,6 +8,7 @@ - [[#lsp][LSP]] - [[#rust][Rust]] - [[#cc][C/C++]] +- [[#org-mode][Org mode]] * Misc @@ -97,3 +98,12 @@ Setup the default format for C/C++ editing. (setq c-basic-offset 2) #+END_SRC +* Org mode + +Doom replaces the default tab behavior on headings, this restores the default +one. Taken from [[https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/org#hacks][here]]. + +#+BEGIN_SRC emacs-lisp +(after! evil-org + (remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h)) +#+END_SRC