mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: add code-completion in src blocks
company-capf for src blocks and company-dabbrev for everything else. Relevant to #2477
This commit is contained in:
@ -195,8 +195,6 @@ This forces it to read the background before rendering."
|
|||||||
|
|
||||||
|
|
||||||
(defun +org-init-babel-h ()
|
(defun +org-init-babel-h ()
|
||||||
(set-eval-handler! 'org-mode #'+org-eval-handler)
|
|
||||||
|
|
||||||
(setq org-src-preserve-indentation t ; use native major-mode indentation
|
(setq org-src-preserve-indentation t ; use native major-mode indentation
|
||||||
org-src-tab-acts-natively t ; we do this ourselves
|
org-src-tab-acts-natively t ; we do this ourselves
|
||||||
;; You don't need my permission (just be careful, mkay?)
|
;; You don't need my permission (just be careful, mkay?)
|
||||||
@ -1107,7 +1105,11 @@ compelling reason, so..."
|
|||||||
(run-hooks 'org-load-hook))
|
(run-hooks 'org-load-hook))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(setq org-archive-subtree-save-file-p t) ; save target buffer after archiving
|
(set-company-backend! 'org-mode 'company-capf 'company-dabbrev)
|
||||||
|
(set-eval-handler! 'org-mode #'+org-eval-handler)
|
||||||
|
|
||||||
|
;; Save target buffer after archiving a node.
|
||||||
|
(setq org-archive-subtree-save-file-p t)
|
||||||
|
|
||||||
;; Prevent modifications made in invisible sections of an org document, as
|
;; Prevent modifications made in invisible sections of an org document, as
|
||||||
;; unintended changes can easily go unseen otherwise.
|
;; unintended changes can easily go unseen otherwise.
|
||||||
|
Reference in New Issue
Block a user