adding emms shuffle and wayland environment stuff

This commit is contained in:
Chris Cochrun 2024-12-10 09:29:59 -06:00
parent 735e36d16a
commit f1d0f9d77b
2 changed files with 22 additions and 12 deletions

View file

@ -444,11 +444,7 @@ I am currently using NixOS. In order for emacs to have access to certain program
Also due to using greetd, emacs isn't started with the environment from the system, so let's make sure it knows which wayland display we are using
#+begin_src emacs-lisp
(let ((desktop (getenv "XDG_CURRENT_DESKTOP")))
(setenv "WAYLAND_DISPLAY" (if (or (string= desktop "COSMIC")
(string= desktop "Hyprland"))
"wayland-1"
"wayland-0")))
(setenv "WAYLAND_DISPLAY" "wayland-1")
#+end_src
#+RESULTS:
@ -4821,7 +4817,7 @@ Let's use pdf-tools for a lot better interaction with pdfs.
"-o sides=two-sided-long-edge"
""))))
(message "printing %s copies." copies)
(async-shell-command (format "lpr %s %s" (string-join pdf-misc-print-program-args " ") (buffer-file-name)))))
(async-shell-command (format "lpr %s '%s'" (string-join pdf-misc-print-program-args " ") (buffer-file-name)))))
(custom-set-variables '(pdf-misc-print-program-executable "lpr")
'(pdf-misc-print-program-args (quote ("-o media=Letter" "-o fit-to-page" "-o sides=two-sided-long-edge"))))
@ -5387,6 +5383,7 @@ Since Bongo seems kinda difficult I shall give EMMS another try.
"mr" 'emms-toggle-repeat-track
"mn" 'emms-next
"mb" 'emms-previous
"ms" 'emms-shuffle
"m]" 'emms-seek-forward
"m[" 'emms-seek-backward)
(general-def 'normal emms-playlist-mode-map