2023-08-12 16:45:26 +02:00
|
|
|
(setq user-full-name "Phil Bajsicki")
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq global-auto-revert-mode t)
|
|
|
|
(setq auth-sources '("~/.authinfo"))
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(after! counsel
|
|
|
|
(setq counsel-outline-display-style 'title))
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq doom-font (font-spec :family "Iosevka" :size 12 :weight 'semi-light)
|
|
|
|
doom-variable-pitch-font (font-spec :family "Iosevka" :size 13))
|
2023-04-15 17:25:11 +02:00
|
|
|
(setq doom-theme 'doom-one)
|
|
|
|
|
|
|
|
(setq display-line-numbers-type 'relative)
|
|
|
|
(setq next-screen-context-lines 4)
|
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(after! persp-mode
|
|
|
|
(setq persp-emacsclient-init-frame-behaviour-override "main"))
|
|
|
|
(setq doom-modeline-persp-name t)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
|
|
|
|
(setq org-directory "~/enc/org/")
|
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq org-contacts-files
|
|
|
|
(file-expand-wildcards "~/enc/org/*.org"))
|
2023-04-15 17:25:11 +02:00
|
|
|
|
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq-default org-enforce-todo-dependencies t)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(global-set-key "\C-cl" 'org-store-link)
|
|
|
|
(global-set-key "\C-ch" 'counsel-org-link)
|
|
|
|
(global-set-key "\C-cne" 'elgantt-open)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 22:48:12 +02:00
|
|
|
(global-set-key "\C-cia" '(lambda ()(interactive)
|
|
|
|
(org-timestamp '(16))))
|
|
|
|
(global-set-key "\C-cii" '(lambda () (interactive)
|
|
|
|
(org-timestamp-inactive '(16))))
|
|
|
|
|
2023-04-15 17:25:11 +02:00
|
|
|
(setq org-todo-keywords
|
|
|
|
'((sequence
|
|
|
|
"INBOX(i)"
|
|
|
|
"TASK(t)" ; A task that needs doing & is ready to do
|
|
|
|
"PROJ(p)" ; A project, which usually contains other tasks
|
|
|
|
"LOOP(r)" ; A recurring task
|
|
|
|
"WAIT(w)" ; Something external is holding up this task
|
|
|
|
"HOLD(h)" ; This task is paused/on hold because of me
|
|
|
|
"|"
|
|
|
|
"DONE(d)" ; Task successfully completed
|
|
|
|
"KILL(k)") ; Task was cancelled, aborted or is no longer applicable
|
|
|
|
(sequence
|
|
|
|
"DECIDE()" ; for making decisions
|
|
|
|
"|"
|
|
|
|
"OKAY(o)" ; okay as-is
|
|
|
|
"YES(y)" ; take action
|
|
|
|
"NO(n)")) ; don't take action
|
|
|
|
org-todo-keyword-faces
|
|
|
|
'(("[-]" . +org-todo-active)
|
|
|
|
("STRT" . +org-todo-active)
|
|
|
|
("[?]" . +org-todo-onhold)
|
|
|
|
("WAIT" . +org-todo-onhold)
|
|
|
|
("HOLD" . +org-todo-onhold)
|
|
|
|
("PROJ" . +org-todo-project)
|
|
|
|
("NO" . +org-todo-cancel)
|
|
|
|
("KILL" . +org-todo-cancel)))
|
|
|
|
|
|
|
|
(setq hl-todo-keyword-faces
|
|
|
|
'(("HOLD" . "#d0bf8f")
|
|
|
|
("TODO" . "#cc9393")
|
|
|
|
("NEXT" . "#dca3a3")
|
|
|
|
("THEM" . "#dc8cc3")
|
|
|
|
("PROG" . "#7cb8bb")
|
|
|
|
("OKAY" . "#7cb8bb")
|
|
|
|
("DONT" . "#5f7f5f")
|
|
|
|
("FAIL" . "#8c5353")
|
|
|
|
("DONE" . "#afd8af")
|
|
|
|
("NOTE" . "#d0bf8f")
|
|
|
|
("KLUDGE" . "#d0bf8f")
|
|
|
|
("HACK" . "#d0bf8f")
|
|
|
|
("TEMP" . "#d0bf8f")
|
|
|
|
("FIXME" . "#cc9393")
|
|
|
|
("XXXX*" . "#cc9393")))
|
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq org-capture-templates '(("t" "inbox" entry (file+headline "~/enc/org/phil.org" "Inbox") "* TODO %i%?")
|
|
|
|
("i" "idea" entry (file+headline "~/enc/org/phil.org" "Ideas") "* %?")
|
|
|
|
("d" "reminder" entry (file+headline "~/enc/org/phil.org" "Reminders") "* %i%? \n %U")
|
2023-04-15 17:25:11 +02:00
|
|
|
("p" "person" entry (file+headline "~/enc/org/people.org" "People")
|
|
|
|
"* %(org-contacts-template-name)
|
|
|
|
:PROPERTIES:
|
|
|
|
:EMAIL: %(org-contacts-template-email)
|
|
|
|
:PHONE: %(org-contacts-template-phone)
|
|
|
|
:ALIAS:
|
|
|
|
:NICKNAME:
|
|
|
|
:IGNORE:
|
|
|
|
:ICON:
|
|
|
|
:NOTE:
|
|
|
|
:ADDRESS:
|
|
|
|
:BIRTHDAY:
|
|
|
|
:END:")))
|
2023-08-12 16:45:26 +02:00
|
|
|
|
2023-04-15 17:25:11 +02:00
|
|
|
(org-wild-notifier-mode)
|
|
|
|
|
|
|
|
(setq org-wild-notifier-alert-time '(10))
|
|
|
|
(setq org-wild-notifier-notification-title "Emacs org-mode agenda")
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq org-wild-notifier-keyword-whitelist '("TODO"))
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-06-12 15:07:15 +02:00
|
|
|
(setq org-refile-targets '((nil :maxlevel . 9)
|
|
|
|
(org-agenda-files :maxlevel . 9)))
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq org-outline-path-complete-in-steps nil)
|
|
|
|
(setq org-refile-use-outline-path t)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(define-prefix-command 'org-roam-map)
|
|
|
|
(global-set-key "\C-r" 'org-roam-map)
|
|
|
|
(define-key org-roam-map "o" 'org-roam-buffer-toggle)
|
|
|
|
(define-key org-roam-map "f" 'org-roam-node-find)
|
|
|
|
(define-key org-roam-map "i" 'org-roam-node-insert)
|
|
|
|
(define-key org-roam-map "n" 'org-roam-capture)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
|
|
|
(setq org-roam-v2-ack t)
|
|
|
|
(setq org-roam-completion-everywhere t)
|
|
|
|
(setq org-roam-directory
|
|
|
|
(file-truename "~/enc/org/roam"))
|
|
|
|
(org-roam-db-autosync-mode)
|
2023-08-12 16:45:26 +02:00
|
|
|
(org-roam-db-autosync-enable)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
|
|
|
(setq org-roam-capture-templates
|
2023-08-12 22:48:12 +02:00
|
|
|
'(("n" "default" plain
|
|
|
|
"%?"
|
|
|
|
:if-new (file+head "%<%Y.%m.%d.%H\:%M>-${slug}.org" "#+title: ${title}\n")
|
|
|
|
:unnarrowed t)
|
|
|
|
("j" "journal" plain
|
2023-04-15 17:25:11 +02:00
|
|
|
"%?"
|
2023-08-12 22:48:12 +02:00
|
|
|
:if-new (file+head "journal/journal-%<%Y.%m.%d.%H\:%M>-${slug}.org" "#+title: ${title}\n")
|
|
|
|
:empty-lines 1
|
|
|
|
:unnarrowed t)
|
|
|
|
("t" "Therapy" plain
|
|
|
|
"
|
|
|
|
* Sytuacja
|
|
|
|
** Myśli
|
|
|
|
** Emocje
|
|
|
|
** Zachowania
|
|
|
|
** Argumenty potwierdzające myśli
|
|
|
|
** Argumenty podważające
|
|
|
|
** Myśli alternatywne
|
|
|
|
** Emocje alternatywne-
|
|
|
|
** Zachowania alternatywne
|
|
|
|
"
|
|
|
|
:if-new (file+head "therapy/therapy-%<%Y.%m.%d.%H\:%M>-${slug}.org" "#+title: ${title}\n")
|
|
|
|
:empty-lines 1
|
|
|
|
:unnarrowed)))
|
|
|
|
|
|
|
|
(use-package! websocket
|
|
|
|
:after org-roam)
|
|
|
|
|
|
|
|
(use-package! org-roam-ui
|
|
|
|
:after org-roam ;; or :after org
|
|
|
|
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
|
|
|
|
;; a hookable mode anymore, you're advised to pick something yourself
|
|
|
|
;; if you don't care about startup time, use
|
|
|
|
;; :hook (after-init . org-roam-ui-mode)
|
|
|
|
:config
|
|
|
|
(setq org-roam-ui-sync-theme t
|
|
|
|
org-roam-ui-follow t
|
|
|
|
org-roam-ui-update-on-save t
|
|
|
|
org-roam-ui-open-on-start t))
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(add-to-list 'load-path "~/.emacs.d/.local/straight/repos/elgantt/")
|
2023-07-22 23:09:34 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq elgantt-header-type 'outline
|
|
|
|
elgantt-draw-overarching-headers t
|
|
|
|
elgantt-insert-header-even-if-no-timestamp nil
|
|
|
|
elgantt-scroll-to-current-month-at-startup t)
|
2023-07-22 23:09:34 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq elgantt-user-set-color-priority-counter 0)
|
2023-07-22 23:09:34 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq elgantt-custom-header-line
|
|
|
|
'((:left ((:prop date-at-point
|
|
|
|
:padding 25)
|
|
|
|
(:prop todo
|
|
|
|
:padding 30)))
|
|
|
|
(:center ((:prop headline)))
|
|
|
|
(:right ((:prop hashtag
|
|
|
|
:padding 40
|
|
|
|
:text-props (face (:background "red")))))))
|
2023-07-22 23:09:34 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(global-set-key "\C-ca" 'org-agenda)
|
|
|
|
(define-prefix-command 'org-agenda-map)
|
|
|
|
(global-set-key "\C-a" 'org-agenda-map)
|
|
|
|
(define-key org-agenda-map "n" 'org-agenda-capture)
|
|
|
|
(define-key org-agenda-map "a" 'org-agenda)
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq org-agenda-files '("~/enc/org/org-agenda-files.org"))
|
|
|
|
(setq org-agenda-start-day nil
|
|
|
|
org-agenda-span '14
|
|
|
|
org-agenda-dim-blocked-tasks 'invisible
|
|
|
|
org-agenda-sorting-strategy
|
|
|
|
'((agenda habit-down time-up priority-down category-keep)
|
|
|
|
(todo priority-down category-keep)
|
|
|
|
(search category-keep))
|
|
|
|
org-deadline-warning-days 3
|
|
|
|
org-agenda-include-diary "~/enc/org/phil-journal.org"
|
|
|
|
org-agenda-insert-diary-extract-time t
|
|
|
|
org-log-into-drawer t
|
|
|
|
org-clock-into-drawer t
|
|
|
|
org-agenda-log-mode-items '(closed clock state))
|
2023-04-15 17:25:11 +02:00
|
|
|
|
2023-08-12 16:45:26 +02:00
|
|
|
(setq doom-snippets-enable-short-helpers t)
|