summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <mab@gnu.org>2020-03-13 21:25:59 -0400
committerAmin Bandali <mab@gnu.org>2020-03-13 21:25:59 -0400
commite8a3b8f7e8f19a083ae438056278026f5e2083bd (patch)
treed0e421a735b72b52bbddffd9a19aeec37f4a6798
parente72d011ddff3da64f76dc70789603a033efdf74c (diff)
downloadconfigs-e8a3b8f7e8f19a083ae438056278026f5e2083bd.tar.gz
configs-e8a3b8f7e8f19a083ae438056278026f5e2083bd.tar.xz
configs-e8a3b8f7e8f19a083ae438056278026f5e2083bd.zip
emacs: add current exwm workspace number to mode-line
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index f2c5bff..e965e01 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -67,7 +67,16 @@
(setq b/emacs-initialized t
gc-cons-threshold b/gc-cons-threshold
gc-cons-percentage b/gc-cons-percentage
- file-name-handler-alist b/file-name-handler-alist))
+ file-name-handler-alist b/file-name-handler-alist)
+ (with-eval-after-load 'exwm-workspace
+ (setq-default
+ mode-line-format
+ (append
+ mode-line-format
+ '((:eval
+ (format
+ "[%s]" (number-to-string
+ exwm-workspace-current-index))))))))
(add-hook 'after-init-hook #'b/post-init)
;; increase number of lines kept in *Messages* log