From e470ca8622abeee6a0a81c330ff9d9aa79d76748 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 24 Jun 2019 14:22:07 +0800 Subject: [PATCH] Optimize debug segment. --- doom-modeline-segments.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index c3a3a77..6da0cd2 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1924,13 +1924,14 @@ mouse-1: Toggle Debug on Quit" (edebug (doom-modeline--debug-edebug)) (on-error (doom-modeline--debug-on-error)) (on-quit (doom-modeline--debug-on-quit)) - (splitter (and (or dap edebug on-error on-quit) (doom-modeline-spc)))) - (concat splitter - (when dap (concat dap (doom-modeline-vspc))) - (when edebug (concat edebug (doom-modeline-vspc))) - (when on-error (concat on-error (doom-modeline-vspc))) + (sep (doom-modeline-vspc)) + (seg-sep (and (or dap edebug on-error on-quit) (doom-modeline-spc)))) + (concat seg-sep + (and dap (concat dap sep)) + (and edebug (concat edebug sep)) + (and on-error (concat on-error sep)) on-quit - splitter)))) + seg-sep)))) ;;