From 5b47fe7fd03e0599688902e6804b32803d8ca53c Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Sep 2019 12:05:03 -0400 Subject: [PATCH] =?utf8?q?emacs:=20exwm:=20don=E2=80=99t=20hardcode=2010?= =?utf8?q?=20for=20s-N=20bindings,=20use=20#=20of=20workspaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .emacs.d/init.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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\\'" -- 2.20.1