Skip to content

Commit

Permalink
tweak(org): disable annoying completion
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 7, 2023
1 parent 4dc0a79 commit c427db1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/extras/me-org-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ Example: \"#+TITLE\" -> \"#+title\"
(when (and +org-use-lower-case-keywords-and-properties (derived-mode-p 'org-mode))
(+org-lower-case-keywords-and-properties)))))

(defun +org-extras-tweak-completion-setup ()
(add-hook
'org-mode-hook
(defun +org-extras--tweak-completion-h ()
(remove-hook 'completion-at-point-functions #'pcomplete-completions-at-point t))))

(defun +org-extras-setup ()
(+org-extras-outline-path-setup)
(+org-extras-latex-classes-setup)
Expand Down
3 changes: 2 additions & 1 deletion modules/me-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@
:demand t
:config
(+org-extras-outline-path-setup)
(+org-extras-pretty-latex-fragments-setup)
(+org-extras-latex-classes-setup)
(+org-extras-tweak-completion-setup)
(+org-extras-responsive-images-setup)
(+org-extras-equation-numbering-setup)
(+org-extras-multifiles-document-setup)
(+org-extras-pretty-latex-fragments-setup)
(+org-extras-lower-case-keywords-and-properties-setup))

(use-package org-contrib
Expand Down

0 comments on commit c427db1

Please sign in to comment.