diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 300a7a2..706e67b 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -231,7 +231,7 @@ The icons may not be showed correctly in terminal and on Windows.") (defface doom-modeline-persp-name '((t (:inherit (font-lock-comment-face italic)))) "Face for the replace state tag in evil state indicator.") -(defface doom-modeline-persp-buffer-not-in-persp '((t (:inherit (font-lock-doc-face bold)))) +(defface doom-modeline-persp-buffer-not-in-persp '((t (:inherit (font-lock-doc-face bold italic)))) "Face for the replace state tag in evil state indicator.") ;; diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 32200a1..fe8b853 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1243,23 +1243,26 @@ Requires `eyebrowse-mode' to be enabled." (let* ((persp (get-current-persp)) (name (safe-persp-name persp))) (unless (string-equal persp-nil-name name) - (propertize - (format " #%s " name) - 'face (if (and persp - (not (persp-contain-buffer-p (current-buffer) persp))) - 'doom-modeline-persp-buffer-not-in-persp - 'doom-modeline-persp-name) - 'help-echo "mouse-1: Switch perspective + (concat + " " + (propertize + (format "#%s" name) + 'face (if (and persp + (not (persp-contain-buffer-p (current-buffer) persp))) + 'doom-modeline-persp-buffer-not-in-persp + 'doom-modeline-persp-name) + 'help-echo "mouse-1: Switch perspective mouse-2: Show help for minor mode" - 'mouse-face 'mode-line-highlight - 'local-map (let ((map (make-sparse-keymap))) - (define-key map [mode-line mouse-1] - #'persp-switch) - (define-key map [mode-line mouse-2] - (lambda () - (interactive) - (describe-function 'persp-mode))) - map))))))) + 'mouse-face 'mode-line-highlight + 'local-map (let ((map (make-sparse-keymap))) + (define-key map [mode-line mouse-1] + #'persp-switch) + (define-key map [mode-line mouse-2] + (lambda () + (interactive) + (describe-function 'persp-mode))) + map)) + " ")))))) (add-hook 'find-file-hook #'doom-modeline-update-persp-name) (add-hook 'persp-activated-functions #'doom-modeline-update-persp-name)