config: QOL fixes

This commit is contained in:
xeruf 2022-06-13 15:50:42 +02:00
parent 4c522a0985
commit deef4afcfe
4 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
{
"microbreakDuration": 20000,
"microbreakInterval": 900000,
"microbreakInterval": 1200000,
"breakDuration": 180000,
"breakInterval": 2,
"breakInterval": 3,
"breakNotification": true,
"microbreakNotification": true,
"breakNotificationInterval": 30000,

View File

@ -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)

View File

@ -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

View File

@ -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', },