Add space to AWS profile modeline string

This commit is contained in:
Jeremy Dormitzer 2024-04-09 22:16:50 -04:00
parent 6857bb849c
commit 79788d4ec0

View File

@ -58,9 +58,9 @@
"Displays the current AWS profile in the modeline." :global t
(if aws-modeline-mode
(add-to-list 'mode-line-misc-info
'(:eval (format "AWS:%s " (or aws-current-profile "default"))))
'(:eval (format " AWS:%s " (or aws-current-profile "default"))))
(setq mode-line-misc-info
(delete '(:eval (format "AWS:%s " (or aws-current-profile "default")))
(delete '(:eval (format " AWS:%s " (or aws-current-profile "default")))
mode-line-misc-info))))
(add-hook 'after-init-hook #'aws-modeline-mode)