moved company-files-regexps change from org/config to company/conif

This commit is contained in:
Jakub Darul 2019-10-10 20:34:52 +02:00
parent d3ebe747b6
commit d74ed618ce
2 changed files with 7 additions and 7 deletions

View file

@ -51,6 +51,11 @@
;;
;; Packages
(after! company-files
(pushnew! company-files--regexps
"file:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)"))
(use-package! company-prescient
:hook (company-mode . company-prescient-mode)
:config

View file

@ -814,11 +814,7 @@ compelling reason, so..."
(sp-local-pair "~" "~" :unless '(:add sp-point-before-word-p +org-sp-in-src-block-p))
(sp-local-pair "=" "=" :unless '(:add sp-point-before-word-p sp-in-math-p +org-sp-in-src-block-p)))))
(defun +org-init-company-h ()
(after! company-files
(setq-local company-files--regexps
(cons "file:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)"
company-files--regexps))))
;;
;;; Bootstrap
@ -881,8 +877,7 @@ compelling reason, so..."
#'+org-init-popup-rules-h
#'+org-init-protocol-h
#'+org-init-protocol-lazy-loader-h
#'+org-init-smartparens-h
#'+org-init-company-h)
#'+org-init-smartparens-h)
;; In case the user has eagerly loaded org from their configs
(when (and (featurep 'org)