mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/org: refactor org init process
after! org is more reliable than org-load-hook.
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
;;; lang/org/+babel.el -*- lexical-binding: t; -*-
|
||||
|
||||
(add-hook 'org-load-hook #'+org-babel|init)
|
||||
|
||||
(defvar +org-babel-languages
|
||||
'(calc
|
||||
css
|
||||
@ -25,7 +23,7 @@
|
||||
"A list of org-babel languages to load.")
|
||||
|
||||
|
||||
(defun +org-babel|init ()
|
||||
(after! org
|
||||
(setq org-src-fontify-natively t ; make code pretty
|
||||
org-src-preserve-indentation t ; use native major-mode indentation
|
||||
org-src-tab-acts-natively t
|
||||
|
Reference in New Issue
Block a user