dakra / dmacs

Emacs Literate Configuration with borg
BSD 2-Clause "Simplified" License
118 stars 17 forks source link

Load order of org packages #5

Open Thaodan opened 1 year ago

Thaodan commented 1 year ago

Hey,

After using much of your org config as a base, I noticed recent after upgrading to a newer Emacs 29 ref (29.0.50.160513-1) that the load order isn't set or wrong for some of the org-packages is wrong.

Thaodan commented 1 year ago

The company-backends issue was because of my modifications, I've added this org-mode-hook that cause the problem:

(add-hook 'org-mode-hook
          (lambda ()
            ;; Automatic line-wrapping in org-mode
            ;;(auto-fill-mode 1)
            (make-local-variable 'company-backends)
            (add-to-list 'company-backends
                         '(company-capf :with company-dabbrev))

            (setq completion-at-point-functions
                  '(org-completion-symbols
                    ora-cap-filesystem))))

In case of such usage org should get :after company.

dakra commented 1 year ago

In case of such usage org should get :after company.

Then org would be loaded every time you load company. In that case I think it would be better to just put a (require 'company) inside the hook lambda.

Thaodan commented 1 year ago

Sorry forgot to reply.

Then org would be loaded every time you load company. In that case I think it would be better to just put a (require 'company) inside the hook lambda.

That makes sense I will try.