206 lines
6.7 KiB
EmacsLisp
206 lines
6.7 KiB
EmacsLisp
(setq user-full-name "Phil Bajsicki")
|
|
|
|
(setq global-auto-revert-mode t)
|
|
(setq auth-sources '("~/.authinfo"))
|
|
|
|
(setq straight-repository-branch "develop")
|
|
|
|
(after! counsel
|
|
(setq counsel-outline-display-style 'title))
|
|
|
|
(setq doom-font (font-spec :family "Iosevka" :size 12 :weight 'semi-light)
|
|
doom-variable-pitch-font (font-spec :family "Iosevka" :size 13))
|
|
(setq doom-theme 'doom-one)
|
|
|
|
(setq display-line-numbers-type 'relative)
|
|
(setq next-screen-context-lines 4)
|
|
|
|
(after! persp-mode
|
|
(setq persp-emacsclient-init-frame-behaviour-override "main"))
|
|
(setq doom-modeline-persp-name t)
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
|
|
(setq org-directory "~/enc/org/")
|
|
|
|
(setq org-contacts-files
|
|
(file-expand-wildcards "~/enc/org/*.org"))
|
|
|
|
|
|
(setq-default org-enforce-todo-dependencies t)
|
|
|
|
(global-set-key "\C-cl" 'org-store-link)
|
|
(global-set-key "\C-ch" 'counsel-org-link)
|
|
(global-set-key "\C-cne" 'elgantt-open)
|
|
|
|
(global-set-key "\C-cia" '(lambda ()(interactive)
|
|
(org-timestamp '(16))))
|
|
(global-set-key "\C-cii" '(lambda () (interactive)
|
|
(org-timestamp-inactive '(16))))
|
|
|
|
(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")))
|
|
|
|
(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")
|
|
("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:")))
|
|
|
|
(org-wild-notifier-mode)
|
|
|
|
(setq org-wild-notifier-alert-time '(10))
|
|
(setq org-wild-notifier-notification-title "Emacs org-mode agenda")
|
|
(setq org-wild-notifier-keyword-whitelist '("TODO"))
|
|
|
|
(setq org-refile-targets '((nil :maxlevel . 9)
|
|
(org-agenda-files :maxlevel . 9)))
|
|
(setq org-outline-path-complete-in-steps nil)
|
|
(setq org-refile-use-outline-path t)
|
|
|
|
(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)
|
|
|
|
(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)
|
|
(org-roam-db-autosync-enable)
|
|
|
|
(setq org-roam-capture-templates
|
|
'(("n" "default" plain
|
|
"%?"
|
|
:if-new (file+head "%<%Y.%m.%d.%H\:%M>-${slug}.org" "#+title: ${title}\n")
|
|
:unnarrowed t)
|
|
("j" "journal" plain
|
|
"%?"
|
|
: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))
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/.local/straight/repos/elgantt/")
|
|
|
|
(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)
|
|
|
|
(setq elgantt-user-set-color-priority-counter 0)
|
|
|
|
(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")))))))
|
|
|
|
(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)
|
|
|
|
(setq org-agenda-files (directory-files-recursively "~/enc/org" "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-insert-diary-extract-time t
|
|
org-log-into-drawer t
|
|
org-clock-into-drawer t
|
|
org-agenda-log-mode-items '(closed clock state))
|
|
|
|
(setq doom-snippets-enable-short-helpers t)
|