Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm-mu4e integration + keybinding changes #4725

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion layers/+email/mu4e/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'(
(mu4e :skip-install t)
mu4e-maildirs-extension
helm-mu
org
))

Expand All @@ -21,7 +22,7 @@
:commands (mu4e mu4e-compose-new)
:init
(progn
(spacemacs/set-leader-keys "a M" 'mu4e)
(spacemacs/set-leader-keys "a m m" 'mu4e)
(global-set-key (kbd "C-x m") 'mu4e-compose-new))
:config
(progn
Expand All @@ -43,6 +44,16 @@
(add-hook 'mu4e-compose-pre-hook 'mu4e/set-account)
(add-hook 'message-sent-hook 'mu4e/mail-account-reset)))))

(defun mu4e/init-helm-mu ()
(spacemacs/set-leader-keys
"a m s" 'helm-mu
"a m c" 'helm-mu-contacts))

(defun mu4e/post-init-helm ()
(require 'helm-config)
(autoload 'helm-mu "helm-mu" "" t)
(autoload 'helm-mu-contacts "helm-mu" "" t))

(defun mu4e/init-mu4e-maildirs-extension ()
(use-package mu4e-maildirs-extension
:defer t
Expand Down
10 changes: 5 additions & 5 deletions layers/spotify/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
(defun spotify/init-spotify ()
(use-package spotify
:config (spacemacs/set-leader-keys
"amsp" 'spotify-playpause
"amsn" 'spotify-next
"amsN" 'spotify-previous
"amsQ" 'spotify-quit)))
"aMsp" 'spotify-playpause
"aMsn" 'spotify-next
"aMsN" 'spotify-previous
"aMsQ" 'spotify-quit)))

(when (configuration-layer/layer-usedp 'spacemacs-helm)
(defun spotify/init-helm-spotify ()
(use-package helm-spotify
:config (spacemacs/set-leader-keys
"amsg" 'helm-spotify))))
"aMsg" 'helm-spotify))))