summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-09-05 12:05:03 -0400
committerAmin Bandali <bandali@gnu.org>2019-09-05 12:07:31 -0400
commit5b47fe7fd03e0599688902e6804b32803d8ca53c (patch)
tree700b41935c2ed5b9058450071ceaa043e5c7a2b1
parent319c6483dd7c28e288cbe17b47bd64e0d2b101ae (diff)
downloadconfigs-5b47fe7fd03e0599688902e6804b32803d8ca53c.tar.gz
configs-5b47fe7fd03e0599688902e6804b32803d8ca53c.tar.xz
configs-5b47fe7fd03e0599688902e6804b32803d8ca53c.zip
emacs: exwm: don’t hardcode 10 for s-N bindings, use # of workspaces
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el3
1 files changed, 1 insertions, 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\\'"