From: Amin Bandali Date: Thu, 5 Sep 2019 16:05:03 +0000 (-0400) Subject: emacs: exwm: don’t hardcode 10 for s-N bindings, use # of workspaces X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/5b47fe7fd03e0599688902e6804b32803d8ca53c?ds=sidebyside;pf=~bandali emacs: exwm: don’t hardcode 10 for s-N bindings, use # of workspaces --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c2fc616..8bf43bf 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -599,7 +599,7 @@ around if needed." ;; 's-\': Switch workspace (exwm-input-set-key (kbd "s-\\") #'exwm-workspace-switch) ;; 's-N': Switch to certain workspace - (dotimes (i 10) + (dotimes (i exwm-workspace-number) (exwm-input-set-key (kbd (format "s-%d" i)) (lambda () @@ -1333,7 +1333,6 @@ This function is intended for use with `ivy-ignore-buffers'." (use-feature elisp-mode :delight (emacs-lisp-mode "Elisp" :major)) - (use-package alloy-mode :straight (:host github :repo "dwwmmn/alloy-mode") :mode "\\.als\\'"