2022-01-11 01:54:46 +00:00
|
|
|
;;; user.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;; Some functionality uses this to identify you,
|
|
|
|
;; e.g. GPG configuration, email clients, file templates and snippets.
|
|
|
|
(setq user-full-name "Janek"
|
|
|
|
user-mail-address "27jf@pm.me")
|
|
|
|
|
2022-05-03 09:19:33 +00:00
|
|
|
(let ((box (expand-file-name "2-box/" user-data-dir)))
|
2022-01-11 01:54:46 +00:00
|
|
|
(if (file-exists-p box)
|
|
|
|
(setq org-directory box
|
|
|
|
org-roam-directory org-directory
|
|
|
|
))
|
|
|
|
)
|
2022-06-22 16:29:30 +00:00
|
|
|
(setq org-attach-id-dir (expand-file-name "3-dox/attach" user-data-dir))
|
2022-04-10 09:36:57 +00:00
|
|
|
(if (and org-directory (file-exists-p org-directory))
|
2022-06-22 16:29:30 +00:00
|
|
|
(progn
|
|
|
|
(if (file-equal-p command-line-default-directory "~")
|
|
|
|
(setq default-directory org-directory))
|
|
|
|
(setq org-agenda-files (append
|
|
|
|
(directory-files-recursively (expand-file-name "project/" org-directory) "\\`[^.]*\\'" 't)
|
2022-04-10 09:36:57 +00:00
|
|
|
(list (expand-file-name "inbox/"))
|
2022-06-22 16:29:30 +00:00
|
|
|
))
|
|
|
|
))
|
2022-04-10 09:36:57 +00:00
|
|
|
|
2022-01-11 01:54:46 +00:00
|
|
|
(use-package! recentf
|
|
|
|
:config
|
|
|
|
(add-to-list 'recentf-exclude "writing\\/tug")
|
|
|
|
(add-to-list 'recentf-exclude "\\.\\(sync\\|stversions\\|stfolder\\)")
|
2022-05-03 09:19:33 +00:00
|
|
|
(add-to-list 'recentf-list (expand-file-name "5-incubator/downloads/" user-data-dir))
|
2022-04-26 11:26:22 +00:00
|
|
|
(setq recentf-keep '(recentf-keep-default-predicate file-remote-p "/ssh:.*"))
|
2022-01-11 01:54:46 +00:00
|
|
|
)
|
2022-08-08 20:43:53 +00:00
|
|
|
|
|
|
|
(use-package! rdictcc
|
|
|
|
:bind (("C-c t". 'rdictcc-translate-word-at-point)
|
|
|
|
("C-c T". 'rdictcc-translate-word))
|
|
|
|
:config (setq rdictcc-program-args "--directory $XDG_DATA_HOME/dictcc")
|
|
|
|
)
|