config/doom: update user dirs

This commit is contained in:
xeruf 2022-05-03 11:19:33 +02:00
parent 1037eef3b8
commit abbc9f0efb
2 changed files with 4 additions and 4 deletions

View File

@ -245,7 +245,7 @@ Version 2019-11-04 2021-02-16"
(substring id 0 2)
(if (> (seq-length id) 2) (substring id 2) id))
)
(setq org-attach-id-dir (expand-file-name "3-resources/attach" user-data-dir)
(setq org-attach-id-dir (expand-file-name "attach" (xdg-user-dir "DOCUMENTS"))
org-attach-method 'mv
org-attach-preferred-new-method nil
org-attach-id-to-path-function-list '(my/org-attach-id-folder-format)
@ -790,7 +790,7 @@ Version 2019-11-04 2021-02-16"
:defer t
:init
(setq magit-clone-set-remote.pushDefault 't
magit-clone-default-directory (expand-file-name "4-incubator/dev" user-data-dir))
magit-clone-default-directory (expand-file-name "1-projects" user-data-dir))
(setq magit-clone-name-alist
'(("\\`\\(?:github:\\|gh:\\)?\\([^:]+\\)\\'" "github.com" "user.name")
("\\`\\(?:gitlab:\\|gl:\\)\\([^:]+\\)\\'" "gitlab.com" "user.name")

View File

@ -5,7 +5,7 @@
(setq user-full-name "Janek"
user-mail-address "27jf@pm.me")
(let ((box (expand-file-name "2-standards/box/" user-data-dir)))
(let ((box (expand-file-name "2-box/" user-data-dir)))
(if (file-exists-p box)
(setq org-directory box
org-roam-directory org-directory
@ -23,6 +23,6 @@
:config
(add-to-list 'recentf-exclude "writing\\/tug")
(add-to-list 'recentf-exclude "\\.\\(sync\\|stversions\\|stfolder\\)")
(add-to-list 'recentf-list (expand-file-name "4-incubator/downloads/" user-data-dir))
(add-to-list 'recentf-list (expand-file-name "5-incubator/downloads/" user-data-dir))
(setq recentf-keep '(recentf-keep-default-predicate file-remote-p "/ssh:.*"))
)