mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
moved comapny files regexp for org mode to org/config.el
This commit is contained in:
@ -31,9 +31,7 @@
|
||||
:before #'company-begin-backend
|
||||
(company-abort)))
|
||||
|
||||
(add-hook 'company-mode-hook #'(lambda ()
|
||||
(+company-init-backends-h)
|
||||
(setq company-files--regexps (cons "file\:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)" company-files--regexps))))
|
||||
(add-hook 'company-mode-hook #'+company-init-backends-h)
|
||||
(global-company-mode +1))
|
||||
|
||||
|
||||
|
@ -859,6 +859,14 @@ compelling reason, so..."
|
||||
#'+org-enable-auto-update-cookies-h
|
||||
#'+org-unfold-to-2nd-level-or-point-h)
|
||||
|
||||
(if (featurep! :completion company)
|
||||
(add-hook 'org-mode-hook
|
||||
#'(lambda ()
|
||||
(require 'company-files)
|
||||
(setq company-files--regexps (cons "file:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)"
|
||||
company-files--regexps)))))
|
||||
|
||||
|
||||
(add-hook! 'org-load-hook
|
||||
#'+org-init-appearance-h
|
||||
#'+org-init-agenda-h
|
||||
|
Reference in New Issue
Block a user