Set org-directory as early as possible
This commit is contained in:
parent
83f2aec4ae
commit
e3b3498148
@ -108,6 +108,15 @@ Just to make sure, although most Linux DE does this for me.
|
|||||||
(set-default-coding-systems 'utf-8)
|
(set-default-coding-systems 'utf-8)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Set org’s 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
|
* Custom commands and functions
|
||||||
|
|
||||||
** Utility functions
|
** Utility functions
|
||||||
@ -2735,7 +2744,6 @@ This is a big one; I use a lot of customisation here.
|
|||||||
'org-mode
|
'org-mode
|
||||||
`(("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)" 12 'org-checkbox-done-text prepend))
|
`(("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)" 12 'org-checkbox-done-text prepend))
|
||||||
'append)
|
'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)
|
(setq-default org-default-notes-file (expand-file-name "notes.org" org-directory)
|
||||||
org-agenda-files `(,org-directory)
|
org-agenda-files `(,org-directory)
|
||||||
org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>")
|
org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>")
|
||||||
|
Loading…
Reference in New Issue
Block a user