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"