config: QOL fixes
This commit is contained in:
parent
4c522a0985
commit
deef4afcfe
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"microbreakDuration": 20000,
|
"microbreakDuration": 20000,
|
||||||
"microbreakInterval": 900000,
|
"microbreakInterval": 1200000,
|
||||||
"breakDuration": 180000,
|
"breakDuration": 180000,
|
||||||
"breakInterval": 2,
|
"breakInterval": 3,
|
||||||
"breakNotification": true,
|
"breakNotification": true,
|
||||||
"microbreakNotification": true,
|
"microbreakNotification": true,
|
||||||
"breakNotificationInterval": 30000,
|
"breakNotificationInterval": 30000,
|
||||||
|
|
|
@ -65,7 +65,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
(defun dragon (&optional @file)
|
(defun dragon (&optional @file)
|
||||||
"Share file from current buffer via dragon."
|
"Share file from current buffer via dragon."
|
||||||
(interactive)
|
(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
|
;; rebing C-u - https://emacs.stackexchange.com/a/58320
|
||||||
|
@ -248,7 +248,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
"gR" 'org-mode-restart
|
"gR" 'org-mode-restart
|
||||||
:desc "Set ID property" "lI" (lambda () (interactive) (org-set-property "ID"
|
:desc "Set ID property" "lI" (lambda () (interactive) (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 (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 "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
|
||||||
|
@ -441,6 +441,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
:config
|
:config
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
|
|
||||||
|
;; https://github.com/org-roam/org-roam/pull/833
|
||||||
(defun xf/dashify-slug (slug)
|
(defun xf/dashify-slug (slug)
|
||||||
(s-replace "_" "-" slug))
|
(s-replace "_" "-" slug))
|
||||||
(advice-add 'org-roam-node-slug :filter-return #'xf/dashify-slug)
|
(advice-add 'org-roam-node-slug :filter-return #'xf/dashify-slug)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# key: B
|
# key: B
|
||||||
# expand-env: ((yas-wrap-around-region 'nil))
|
# expand-env: ((yas-wrap-around-region 'nil))
|
||||||
# --
|
# --
|
||||||
$1
|
$1$0
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:Author: ${2:+}
|
: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
|
: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
|
||||||
|
|
|
@ -48,7 +48,6 @@ let g:firenvim_config = {
|
||||||
\ '.*element\.io.*': { 'priority': 9, 'takeover': 'empty', },
|
\ '.*element\.io.*': { 'priority': 9, 'takeover': 'empty', },
|
||||||
\ '.*openstreetmap\.org.*': { 'priority': 9, 'takeover': 'once', },
|
\ '.*openstreetmap\.org.*': { 'priority': 9, 'takeover': 'once', },
|
||||||
\ '.*openstreetmap\.de.*': { 'priority': 9, 'takeover': 'once', },
|
\ '.*openstreetmap\.de.*': { 'priority': 9, 'takeover': 'once', },
|
||||||
\ '.*github\.com.*': { 'priority': 9, 'takeover': 'once', },
|
|
||||||
\
|
\
|
||||||
\ '.*discord\.com.*': { 'priority': 9, 'takeover': 'never', },
|
\ '.*discord\.com.*': { 'priority': 9, 'takeover': 'never', },
|
||||||
\ '.*twitter\.com.*': { 'priority': 9, 'takeover': 'never', },
|
\ '.*twitter\.com.*': { 'priority': 9, 'takeover': 'never', },
|
||||||
|
|
Loading…
Reference in New Issue