summaryrefslogtreecommitdiffstats
path: root/emacs/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org15
1 files changed, 11 insertions, 4 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 70b134c..531e6d5 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -363,10 +363,17 @@ functionality, plus more.
#+BEGIN_SRC emacs-lisp
(defun oni:smt/minor-mode-indicator-text (widget)
- (let ((text (concat
- (when (bound-and-true-p auto-complete-mode) "C")
- (when (bound-and-true-p auto-fill-mode) "F")
- (when (bound-and-true-p eldoc-mode) "D"))))
+ (let* ((mm-alist '((auto-complete-mode . "AC ")
+ (auto-fill-mode . "AF ")
+ (eldoc-mode . "LD ")
+ (paredit-mode . "()")))
+ (text (apply 'concat
+ (mapcar
+ (lambda (pair)
+ (when (and (boundp (car pair))
+ (symbol-value (car pair)))
+ (cdr pair)))
+ mm-alist))))
(if (plusp (length text))
(concat " " text)
"")))