Procházet zdrojové kódy

Add some MPD shortcuts #emacs

Colin Powell před 5 roky
rodič
revize
d38347dbb6
2 změnil soubory, kde provedl 23 přidání a 3 odebrání
  1. 9 3
      emacs/.config/doom/config.el
  2. 14 0
      emacs/.config/doom/init.el

+ 9 - 3
emacs/.config/doom/config.el

@@ -10,11 +10,11 @@
 (setq user-full-name "Colin Powell"
       user-mail-address "colin@onec.me")
 
-(setq doom-theme 'doom-one)
+(setq doom-theme 'doom-snazzy)
 
 ;; Fonts
-(setq doom-font (font-spec :family "IBM Plex Mono" :size 12))
-(setq doom-big-font (font-spec :family "IBM Plex Mono" :size 22))
+(setq doom-font (font-spec :family "IBM Plex Mono" :size 14))
+(setq doom-big-font (font-spec :family "IBM Plex Mono" :size 24))
 
 ;; Host-specific config
 
@@ -85,6 +85,12 @@
         :desc "Elfeed feed reader"      "f" #'elfeed
         :desc "Lobste.rs"               "l" #'ivy-lobsters
         :desc "Compose an email"        "c" #'notmuch-mua-new-mail)
+      (:prefix "l"
+        :desc "MPD Open playlist"       "o" #'mpdel-playlist-open
+        :desc "MPD Remove at point"     "d" #'mpdel-playlist-delete
+        :desc "MPD Start at point"      "s" #'mpdel-playlist-play
+        :desc "MPD Next track"          "n" #'libmpdel-playback-next
+        :desc "MPD Previous track"      "p" #'libmpdel-playback-previous)
       (:prefix "b"
         :desc "Black format buffer"     "f" #'blacken-buffer
         :desc "Links in buffer"         "l" #'counsel-ace-link)

+ 14 - 0
emacs/.config/doom/init.el

@@ -167,3 +167,17 @@
        ;; provides a Spacemacs-inspired keybinding scheme and a smartparens
        ;; config. Use it as a reference for your own modules.
        (default +bindings +smartparens))
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(custom-safe-themes
+   (quote
+    ("5d84ef8afded2cb54c77d21d6eb40a8a8356e4d490667ecc0de553e64e9f8292" "d0c943c37d6f5450c6823103544e06783204342430a36ac20f6beb5c2a48abe3" default))))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )