lang/org: refactor org config load order

- No longer use org-load-hook; it was unnecessary and there were corner
  cases where org would get loaded before hooks were added to it.
- Update comments
- Remove config that was redundant with org's defaults (wrt org-file-apps)
- Perform persp-mode check before using persp-mode API in
  +org|exclude-agenda-buffers-from-workspace advice.
- Update outdated smartparens config and move it out of
  org-mode-hook (only needs to be run once, not everytime org-mode is
  enabled)
- Autoload mode hooks
This commit is contained in:
Henrik Lissner 2019-04-10 18:47:21 -04:00
parent 3da6c23d75
commit 653161fe2e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 117 additions and 135 deletions