diff options
author | Case Duckworth | 2020-11-01 23:46:23 -0600 |
---|---|---|
committer | Case Duckworth | 2020-11-01 23:46:23 -0600 |
commit | a49dc0197c18f1aee70c7e3bc9a278d709361eae (patch) | |
tree | eee1d4a19a21bffc8762f0a94473d7ca85f748b9 | |
parent | Install word count mode (diff) | |
download | emacs-a49dc0197c18f1aee70c7e3bc9a278d709361eae.tar.gz emacs-a49dc0197c18f1aee70c7e3bc9a278d709361eae.zip |
Add rm-whitelist-add hack
-rw-r--r-- | config.org | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config.org b/config.org index 2fcba97..1a757ce 100644 --- a/config.org +++ b/config.org | |||
@@ -299,9 +299,17 @@ This doesn't happen often, but I'll be ready when it does. | |||
299 | 299 | ||
300 | I hide all minor-modes by default for a clean modeline. However, I can add them back by adding them to the whitelist with ~(add-to-list 'rm-whitelist " REGEX")~. | 300 | I hide all minor-modes by default for a clean modeline. However, I can add them back by adding them to the whitelist with ~(add-to-list 'rm-whitelist " REGEX")~. |
301 | #+BEGIN_SRC emacs-lisp | 301 | #+BEGIN_SRC emacs-lisp |
302 | (defun rm-whitelist-add (regexp) | ||
303 | "Add a regexp to the whitelist." | ||
304 | (setq rm-whitelist | ||
305 | (mapconcat 'identity rm--whitelist-regexps "\\|"))) | ||
306 | |||
307 | (setq rm--whitelist-regexps '("^$")) | ||
308 | |||
302 | (use-package rich-minority | 309 | (use-package rich-minority |
303 | :custom | 310 | :custom |
304 | (rm-whitelist '("^$"))) | 311 | (rm-whitelist |
312 | (mapconcat 'identity rm--whitelist-regexps "\\|"))) | ||
305 | #+END_SRC | 313 | #+END_SRC |
306 | ** Fonts | 314 | ** Fonts |
307 | I'm sure there's a better way to do this, but for now, this is the best I've got. I append to the ~face-font-family-alternatives~ because I don't know what kind of weird magic they're doing in there. | 315 | I'm sure there's a better way to do this, but for now, this is the best I've got. I append to the ~face-font-family-alternatives~ because I don't know what kind of weird magic they're doing in there. |