From 5d2d80795dcd5709db55eba6e54433c71d45981e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 20 Dec 2020 17:26:10 +0100 Subject: [PATCH] fix(tazjin/emacs): Bind notmuch shortcuts via EXWM Change-Id: I082ee9f75f9e0ef486bc240b4aeda3dec8e79019 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2284 Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/desktop.el | 5 +++++ users/tazjin/emacs/config/init.el | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el index 393e703e4..7b3a5d4c4 100644 --- a/users/tazjin/emacs/config/desktop.el +++ b/users/tazjin/emacs/config/desktop.el @@ -256,6 +256,11 @@ (exwm-input-set-key (kbd "s-m b") #'randr-frog-layout-both) (exwm-input-set-key (kbd "s-m r") #'randr-frog-layout-right-only))) +;; Notmuch shortcuts as EXWM globals +;; (g m => gmail) +(exwm-input-set-key (kbd "s-g m") #'notmuch) +(exwm-input-set-key (kbd "s-g M") #'counsel-notmuch) + (exwm-randr-enable) ;; Let buffers move seamlessly between workspaces by making them diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el index af881f8f0..7192c8fd2 100644 --- a/users/tazjin/emacs/config/init.el +++ b/users/tazjin/emacs/config/init.el @@ -80,9 +80,6 @@ (use-package multiple-cursors) (use-package notmuch - :bind (:map global-map - ("s-g m" . notmuch) - ("s-g M" . counsel-notmuch)) ;; g m -> gmail :config (setq notmuch-search-oldest-first nil) (setq notmuch-show-all-tags-list t)