From 001cab3a2ad63a796b064a854abcb1a89212144c Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Thu, 15 Oct 2020 10:12:25 +0200 Subject: [PATCH] Doom & focus fixes --- .config/doom/config.el | 2 ++ .local/bin/focus | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index e6ccc8a..a38845e 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -31,6 +31,8 @@ :leader "bq" 'doom/save-and-kill-buffer :leader "mj" 'org-insert-heading) +(setq initial-major-mode 'org-mode) + (desktop-save-mode 1) ;; Backups & auto-saves diff --git a/.local/bin/focus b/.local/bin/focus index ff91411..77eb1bb 100755 --- a/.local/bin/focus +++ b/.local/bin/focus @@ -1,3 +1,3 @@ playlistPath="$MUSIC/Playlists" -result="$(test "$1" && (find $playlistPath -iname "focus-$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u*" | grep . || find $MUSIC -iname "*$1*") || echo "$playlistPath/focus.m3u8" )" +result="$(test "$1" && (find $playlistPath -iname "focus-$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u*" | grep . || find $MUSIC -iname "*$1*") | head -1 || echo "$playlistPath/focus.m3u8" )" vp "$result"