config/doom: org-syn

This commit is contained in:
xeruf 2023-06-21 12:33:33 +02:00
parent a866858d47
commit 7155fb1e78
3 changed files with 12 additions and 5 deletions

View File

@ -151,6 +151,7 @@ Version 2019-11-04 2021-02-16"
lazy-highlight-cleanup nil lazy-highlight-cleanup nil
large-file-warning-threshold 40000000) large-file-warning-threshold 40000000)
; TODO auto-trim whitespace unless markdown
(whitespace-mode 0) (whitespace-mode 0)
(auto-correct-mode) (auto-correct-mode)
@ -318,10 +319,15 @@ Version 2019-11-04 2021-02-16"
:desc "High Priority" "pa" (lambda () (interactive) (org-priority "A")) :desc "High Priority" "pa" (lambda () (interactive) (org-priority "A"))
:desc "Set ID property" "lI" (lambda () (interactive) :desc "Set ID property" "lI" (lambda () (interactive)
;; Check out https://github.com/novoid/dot-emacs/blob/master/config.org#my-id-get-or-generate ;; Check out https://github.com/novoid/dot-emacs/blob/master/config.org#my-id-get-or-generate
; TODO trim trailing dash
(org-set-property "ID" (org-set-property "ID"
(let ((heading (org-get-heading t t t t))) (let ((heading (org-get-heading t t t t)))
(if heading (org-read-property-value "ID" nil (xf/slugify heading)) (file-name-sans-extension (file-name-nondirectory buffer-file-name))) (if heading (org-read-property-value "ID" nil (xf/slugify heading)) (file-name-sans-extension (file-name-nondirectory buffer-file-name)))
))) ))
; TODO insert current date timestamp
;(or (org-entry-get nil "CREATED") (org-set-property "CREATED" (org-read-date)))
;(or (org-entry-get nil "MODIFIED") (org-set-property "MODIFIED" (org-read-date)))
)
:desc "Set Roam Aliases" "la" (lambda () (interactive) (org-set-property "ROAM_ALIASES" nil)) :desc "Set Roam Aliases" "la" (lambda () (interactive) (org-set-property "ROAM_ALIASES" nil))
:desc "Add tag" "mt" 'org-roam-tag-add :desc "Add tag" "mt" 'org-roam-tag-add
:desc "Remove tag" "mT" 'org-roam-tag-remove :desc "Remove tag" "mT" 'org-roam-tag-remove
@ -342,7 +348,7 @@ Version 2019-11-04 2021-02-16"
(setq org-priority-faces '((65 . error) (66 . "DarkGoldenRod") (67 . warning) (68 . "bisque") (69 . "grey"))) (setq org-priority-faces '((65 . error) (66 . "DarkGoldenRod") (67 . warning) (68 . "bisque") (69 . "grey")))
(push "PERM(e)" (cdr (car org-todo-keywords))) (push "PERM(e)" (cdr (car org-todo-keywords)))
; #+TODO: IDEA(i!) PROMPT(p!) OUTLINE(o!) DRAFT(t!) | REVIEW(r!) DONE(d!) ABANDON(a!) ; #+TODO: IDEA(i!) OUTLINE(o!) DRAFT(t!) | REVIEW(r!) DONE(d!) ABANDON(a!)
; highlight review keyword ; highlight review keyword
;; Org startup - https://orgmode.org/manual/In_002dbuffer-Settings.html ;; Org startup - https://orgmode.org/manual/In_002dbuffer-Settings.html
@ -579,7 +585,7 @@ Version 2019-11-04 2021-02-16"
(let ((org-display-remote-inline-images 'skip)) (org-roam-update-org-id-locations)) (let ((org-display-remote-inline-images 'skip)) (org-roam-update-org-id-locations))
(when (equal major-mode 'org-mode) (org-mode-restart))) (when (equal major-mode 'org-mode) (org-mode-restart)))
(if (file-exists-p org-roam-directory) (xf/auto-org-roam-db-sync-mode)) ; FIXME test if still needed (if (file-exists-p org-roam-directory) (xf/auto-org-roam-db-sync-mode))
;; Node Search ;; Node Search
(setq org-roam-node-display-template (setq org-roam-node-display-template

View File

@ -329,7 +329,7 @@ sshl() {
! [[ "$1" =~ "delta*" ]] && ! [[ "$1" =~ "delta*" ]] &&
local pass=pass local pass=pass
test "$all" && test "$all" &&
$pass scp ~/.bash_aliases "$1:" && $pass scp -O ~/.bash_aliases "$1:" &&
$pass ssh "$1" 'grep -q ".bash_aliases" .bashrc || echo "source ~/.bash_aliases" >>.bashrc' $pass ssh "$1" 'grep -q ".bash_aliases" .bashrc || echo "source ~/.bash_aliases" >>.bashrc'
if test -n "$pass" if test -n "$pass"
then pass ssh "$@" then pass ssh "$@"

View File

@ -150,5 +150,6 @@ export CTEST_PROGRESS_OUTPUT=1
export CTEST_OUTPUT_ON_FAILURE=1 export CTEST_OUTPUT_ON_FAILURE=1
export CTEST_PARALLEL_LEVEL=3 export CTEST_PARALLEL_LEVEL=3
autolight # TODO move to proper place - is also called when firenvim starts
#autolight
#export TZ='Europe/Dublin' #export TZ='Europe/Dublin'