Set org-directory as early as possible

This commit is contained in:
Gergely Polonkai 2019-10-22 10:33:33 +02:00
parent 83f2aec4ae
commit e3b3498148
No known key found for this signature in database
GPG Key ID: 38F402C8471DDE93
1 changed files with 9 additions and 1 deletions

View File

@ -108,6 +108,15 @@ Just to make sure, although most Linux DE does this for me.
(set-default-coding-systems 'utf-8)
#+END_SRC
** Set orgs main directory
Since a lot of packages use it as their base (org-projectile, org-ref, org-caldav, etc.), i need
it as early as possible.
#+BEGIN_SRC emacs-lisp
(setq org-directory (expand-file-name "NextCloud/orgmode" user-documents-directory))
#+END_SRC
* Custom commands and functions
** Utility functions
@ -2735,7 +2744,6 @@ This is a big one; I use a lot of customisation here.
'org-mode
`(("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)" 12 'org-checkbox-done-text prepend))
'append)
(setq org-directory (expand-file-name "NextCloud/orgmode" user-documents-directory))
(setq-default org-default-notes-file (expand-file-name "notes.org" org-directory)
org-agenda-files `(,org-directory)
org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>")