[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Set default expand level?
From: |
Keno Goertz |
Subject: |
Set default expand level? |
Date: |
Sun, 07 Feb 2021 17:31:09 +0100 |
User-agent: |
mu4e 1.4.14; emacs 27.1 |
Hello,
can anyone tell me how to set a default expand level on EMMS? I have the
following in my config file:
#+BEGIN_SRC emacs-lisp
(require 'emms-setup)
(emms-all)
(emms-default-players)
(setq emms-source-file-default-directory "~/mus/loved")
(setq emms-info-functions '(emms-info-tinytag))
(global-set-key (kbd "C-c s") 'emms-smart-browse)
(emms-browser-make-filter
"loved" (emms-browser-filter-only-dir "~/mus/loved/"))
(emms-browser-make-filter
"unrated" (emms-browser-filter-only-dir "~/mus/unrated/"))
(emms-browser-make-filter
"didnotlove" (emms-browser-filter-only-dir "~/mus/didnotlove/"))
(emms-browser-set-filter (assoc "loved" emms-browser-filters))
#+END_SRC
When calling emms-smart-browse, I successfully get into the artist list
of the music I love. Now, I always find myself hitting 2 because I'm
interested in seeing the albums. When hitting 2 in the artist view, I
get exactly the kind of view I want to see by default.
I have tried using emms-browser-mode-hook, but
#+BEGIN_SRC emacs-lisp
(add-hook 'emms-browser-mode-hook 'emms-browser-expand-to-level-2)
#+END_SRC
just makes Emacs freeze up when calling emms-smart-browse.
Anyone has an idea?
Thanks
Keno
signature.asc
Description: PGP signature
- Set default expand level?,
Keno Goertz <=