From b1de4bcbaaeb0dc27efa60367553902651d8dc92 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Mon, 1 Mar 2021 12:00:43 +0100 Subject: [PATCH] config: clean up aliases & remove mdoh --- .config/doom/config.el | 1 + .config/git/config-data | 2 +- .config/shell/functions | 6 ++++-- .local/bin/scripts/mdoh | 10 ---------- 4 files changed, 6 insertions(+), 13 deletions(-) delete mode 100755 .local/bin/scripts/mdoh diff --git a/.config/doom/config.el b/.config/doom/config.el index 69b215b..553b22a 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -107,6 +107,7 @@ ;; Org startup - https://orgmode.org/manual/In_002dbuffer-Settings.html (setq org-startup-folded 'show2levels) (setq org-startup-with-inline-images t) +(setq org-display-remote-inline-images 'cache) ;; Fix xdg-open & open PDF in Emacs - https://depp.brause.cc/dotemacs/#orgd97f08c (setq org-file-apps '((remote . emacs) diff --git a/.config/git/config-data b/.config/git/config-data index 92f66c9..06301c2 100644 --- a/.config/git/config-data +++ b/.config/git/config-data @@ -1,4 +1,4 @@ [alias] journal = !git cme "notes/journal:" -- $(git root)/2-standards/notes/journal note = !git cme "notes:" -- $(git root)/2-standards/notes - write = !git cme "writings:" -- $(git root)/2-standards/writing + write = !git cme "write:" -- $(git root)/2-standards/writing diff --git a/.config/shell/functions b/.config/shell/functions index 40ee732..b4a2efd 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -120,7 +120,7 @@ alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G' alias lar='last | tac' # Listen to loopback of mic -alias listen='pactl load-module module-loopback; read; pactl unload-module module-loopback' +alias listen='pactl load-module module-loopback; echo "Press Enter to stop"; read; pactl unload-module module-loopback' alias browse-safe='sudo systemctl disable --now systemd-resolved && sudo rm -f /etc/resolv.conf && echo "nameserver 185.228.168.10" | sudo tee /etc/resolv.conf && sudo chattr +i /etc/resolv.conf' alias browse-unsafe='sudo chattr -i /etc/resolv.conf && sudo mv /etc/resolv.conf /etc/resolv.conf.bak && sudo systemctl enable --now systemd-resolved && sleep 100 && browse-safe' @@ -146,9 +146,11 @@ alias mdox="xclip -o -selection clipboard | mdo | xclip -filter" alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index' alias sc='sudo systemctl' +alias sce='sudo systemctl enable --now' scs() { sudo systemctl status "*$1*" } alias scu='systemctl --user' -alias scrw='sudo systemctl restart display-manager' +alias scue='systemctl --user enable --now' +scus() { systemctl --user status "*$1*" } alias jcl='sudo SYSTEMD_LESS=FRKi journalctl --boot --no-hostname -e' alias jc='jcl -u' diff --git a/.local/bin/scripts/mdoh b/.local/bin/scripts/mdoh deleted file mode 100755 index 167ceb2..0000000 --- a/.local/bin/scripts/mdoh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# Transforms org to markdown using a simplified regex -sed ':o; s/_\(\w[^_]*\w\)_/\/\1\//g; - /^#\+ /{ - s/^#/*/; To; - :b; s/^\(\**\)#/\1*/g; tb; - n; s/^$//; To; D - }' "$@" -# echo "# one\n\n# two\n## under #two\n_hello under_two_\nnumber #1" | mdoh -