moved comapny files regexp for org mode to org/config.el
This commit is contained in:
parent
596e7c97a9
commit
9a79f3815f
2 changed files with 9 additions and 3 deletions
|
@ -31,9 +31,7 @@
|
||||||
:before #'company-begin-backend
|
:before #'company-begin-backend
|
||||||
(company-abort)))
|
(company-abort)))
|
||||||
|
|
||||||
(add-hook 'company-mode-hook #'(lambda ()
|
(add-hook 'company-mode-hook #'+company-init-backends-h)
|
||||||
(+company-init-backends-h)
|
|
||||||
(setq company-files--regexps (cons "file\:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)" company-files--regexps))))
|
|
||||||
(global-company-mode +1))
|
(global-company-mode +1))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -859,6 +859,14 @@ compelling reason, so..."
|
||||||
#'+org-enable-auto-update-cookies-h
|
#'+org-enable-auto-update-cookies-h
|
||||||
#'+org-unfold-to-2nd-level-or-point-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
|
(add-hook! 'org-load-hook
|
||||||
#'+org-init-appearance-h
|
#'+org-init-appearance-h
|
||||||
#'+org-init-agenda-h
|
#'+org-init-agenda-h
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue