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:
parent
b5706c5793
commit
3b159dda0a
1 changed files with 5 additions and 3 deletions
|
@ -195,8 +195,6 @@ This forces it to read the background before rendering."
|
|||
|
||||
|
||||
(defun +org-init-babel-h ()
|
||||
(set-eval-handler! 'org-mode #'+org-eval-handler)
|
||||
|
||||
(setq org-src-preserve-indentation t ; use native major-mode indentation
|
||||
org-src-tab-acts-natively t ; we do this ourselves
|
||||
;; You don't need my permission (just be careful, mkay?)
|
||||
|
@ -1107,7 +1105,11 @@ compelling reason, so..."
|
|||
(run-hooks 'org-load-hook))
|
||||
|
||||
: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
|
||||
;; unintended changes can easily go unseen otherwise.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue