From 5f01a29eb8acbfb3db715b2d45d3aed095b07978 Mon Sep 17 00:00:00 2001 From: Nicholas D Steeves Date: Tue, 13 Jun 2017 20:51:08 -0400 Subject: Provide rm-blacklist configuration example (Source: issue 108) Source: https://github.com/Malabarba/smart-mode-line/issues/108 --- README.org | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index acac5bd..3c4dd3c 100644 --- a/README.org +++ b/README.org @@ -20,7 +20,19 @@ three variables: - ~rm-blacklist~ :: List of minor mode names that will be hidden from the minor-modes list. Use this to hide *only* a few modes that - are always active and don’t really contribute information. + are always active and don’t really contribute information. eg: +#+begin_src emacs-lisp +(setq rm-blacklist + (format "^ \\(%s\\)$" + (mapconcat #'identity + '("Fly.*" + "Projectile.*" + "my-keys-mode" + "PgLn" + "company" + "Undo-Tree") + "\\|"))) +#+end_src - ~rm-whitelist~ :: List of minor mode names that are allowed on the minor-modes list. Use this to hide *all but* a few modes. - ~rm-text-properties~ :: List text properties to apply to each -- cgit v1.0 From 8dbc001cb0643eaf124fe9b2037b7e2282e785a7 Mon Sep 17 00:00:00 2001 From: Nicholas D Steeves Date: Tue, 13 Jun 2017 20:54:51 -0400 Subject: Add "Blacklist all minor modes" example --- README.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.org b/README.org index 3c4dd3c..fecb57f 100644 --- a/README.org +++ b/README.org @@ -33,6 +33,16 @@ three variables: "Undo-Tree") "\\|"))) #+end_src + If for some reason all minor modes are not hidden when rich-minority + is activated, try the following: +#+begin_src emacs-lisp +;; Blacklist all minor modes +(setq rm-blacklist + (format "^ \\(%s\\)$" + (mapconcat #'identity + '(".*") + "\\|"))) +#+end_src - ~rm-whitelist~ :: List of minor mode names that are allowed on the minor-modes list. Use this to hide *all but* a few modes. - ~rm-text-properties~ :: List text properties to apply to each -- cgit v1.0