From deef4afcfe38f14ad080509084230e06d0e9a347 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 13 Jun 2022 15:50:42 +0200 Subject: [PATCH] config: QOL fixes --- .config/Stretchly/config.json | 4 ++-- .config/doom/config.el | 5 +++-- .config/doom/snippets/org-mode/reading-list-book | 2 +- .config/nvim/init/pluginConfig.vim | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/Stretchly/config.json b/.config/Stretchly/config.json index 145b5b5..8d6ac7a 100644 --- a/.config/Stretchly/config.json +++ b/.config/Stretchly/config.json @@ -1,8 +1,8 @@ { "microbreakDuration": 20000, - "microbreakInterval": 900000, + "microbreakInterval": 1200000, "breakDuration": 180000, - "breakInterval": 2, + "breakInterval": 3, "breakNotification": true, "microbreakNotification": true, "breakNotificationInterval": 30000, diff --git a/.config/doom/config.el b/.config/doom/config.el index 660439d..7131292 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -65,7 +65,7 @@ Version 2019-11-04 2021-02-16" (defun dragon (&optional @file) "Share file from current buffer via dragon." (interactive) - (shell-command (concat "dragon-drop -a -x " (or @file (buffer-file-name)))) + (message (concat "dragon-drop -a -x " (or @file (buffer-file-name)))) ) ;; rebing C-u - https://emacs.stackexchange.com/a/58320 @@ -248,7 +248,7 @@ Version 2019-11-04 2021-02-16" "gR" 'org-mode-restart :desc "Set ID property" "lI" (lambda () (interactive) (org-set-property "ID" (let ((heading (org-get-heading t t t t))) - (if heading (org-read-property-value "ID" nil (downcase (s-replace-regexp "[^[:alnum:][:digit:]]\+" "-" (heading)))) (file-name-sans-extension (file-name-nondirectory buffer-file-name)))))) + (if heading (org-read-property-value "ID" nil (downcase (s-replace-regexp "[^[:alnum:][:digit:]]\+" "-" heading))) (file-name-sans-extension (file-name-nondirectory buffer-file-name)))))) :desc "Set Roam Aliases" "la" (lambda () (interactive) (org-set-property "ROAM_ALIASES" nil)) :desc "Add tag" "mt" 'org-roam-tag-add :desc "Remove tag" "mT" 'org-roam-tag-remove @@ -441,6 +441,7 @@ Version 2019-11-04 2021-02-16" :config (require 'org-roam-protocol) + ;; https://github.com/org-roam/org-roam/pull/833 (defun xf/dashify-slug (slug) (s-replace "_" "-" slug)) (advice-add 'org-roam-node-slug :filter-return #'xf/dashify-slug) diff --git a/.config/doom/snippets/org-mode/reading-list-book b/.config/doom/snippets/org-mode/reading-list-book index 6aa1157..6e7296d 100644 --- a/.config/doom/snippets/org-mode/reading-list-book +++ b/.config/doom/snippets/org-mode/reading-list-book @@ -3,7 +3,7 @@ # key: B # expand-env: ((yas-wrap-around-region 'nil)) # -- -$1 +$1$0 :PROPERTIES: :Author: ${2:+} :LibErlangen: https://stadtbibliothek-recherche.erlangen.de/Mediensuche/Einfache-Suche?search=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&top=y&facets=v_____Sachb%C3%BCcher%7CJugendsachbuch%7CJugendroman%7CBuch+Romane%7CSachb%C3%BCcher+Weih.%2fOst%7CSachbuch+Computer&facetsc=_____15&pagesize=20 diff --git a/.config/nvim/init/pluginConfig.vim b/.config/nvim/init/pluginConfig.vim index 05116f3..64fbbf2 100644 --- a/.config/nvim/init/pluginConfig.vim +++ b/.config/nvim/init/pluginConfig.vim @@ -48,7 +48,6 @@ let g:firenvim_config = { \ '.*element\.io.*': { 'priority': 9, 'takeover': 'empty', }, \ '.*openstreetmap\.org.*': { 'priority': 9, 'takeover': 'once', }, \ '.*openstreetmap\.de.*': { 'priority': 9, 'takeover': 'once', }, - \ '.*github\.com.*': { 'priority': 9, 'takeover': 'once', }, \ \ '.*discord\.com.*': { 'priority': 9, 'takeover': 'never', }, \ '.*twitter\.com.*': { 'priority': 9, 'takeover': 'never', },