diff options
-rw-r--r-- | init.el | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -780,6 +780,7 @@ (use-package jao-skel :demand t :config + (defvar flymake-allowed-file-name-masks nil) (require 'jao-skel-geiser) (require 'jao-skel-lisp) (require 'jao-skel-haskell) @@ -2908,22 +2909,19 @@ (defalias 'jao-streaming-toggle-shuffle #'jao-spt-toggle-shuffle))) (defvar jao-spt-on nil) -(defun jao-spt-on-p () jao-spt-on) - (jao-def-exec-in-term "spt" "spt" (jao-afio-goto-scratch)) -(defun jao-streaming-toggle-player (&optional mpris) +(defun jao-streaming-toggle-player () (interactive) - (if (or mpris jao-spt-on) + (if jao-spt-on (progn (setq jao-mpris-player "playerctld") (require 'jao-mpris) (jao-mpris-setup-aliases)) (jao-spt-setup-aliases) (setq jao-mpris-player "spt")) - (message "%s activated " - (if (setq jao-spt-on (not jao-spt-on)) "spt" "mpris"))) + (message "%s activated " jao-mpris-player)) -(jao-streaming-toggle-player t) +(jao-streaming-toggle-player) ;;;; music transients (require 'jao-lyrics) |