From e856f6d5f091aa270a55e901e180f4ac1180fe5e Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Sat, 1 Aug 2015 12:52:08 +0200 Subject: [PATCH] Add option to exclude from global-mode-string Fixes #2500 --- spacemacs/config.el | 4 ++++ spacemacs/packages.el | 29 ++++++++++++----------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/spacemacs/config.el b/spacemacs/config.el index 6d14b97ba..7c4a94b38 100644 --- a/spacemacs/config.el +++ b/spacemacs/config.el @@ -203,6 +203,10 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'." (if dotspacemacs-maximized-at-startup (add-hook 'window-setup-hook 'toggle-frame-maximized)))) +(defvar spacemacs--global-mode-line-excludes nil + "List of elements to exclude from the global modeline string. +These should have their own segments in the modeline.") + ;; --------------------------------------------------------------------------- ;; Session ;; --------------------------------------------------------------------------- diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 141420e00..4bbfeeb6d 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -1099,20 +1099,14 @@ Example: (evil-map visual \"<\" \"