summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2015-02-17 15:13:04 +0000
committerTaylor R Campbell <campbell@mumble.net>2015-02-17 15:13:04 +0000
commit9a696fdcce87c9d9eec4569a9929d0300ac6ae5c (patch)
treeedef619cfc8c214cd39b4292cf0852363622c61d
parent35dc7b15442509240dfddd381c95329e5fe4dcfd (diff)
Make the mode line lighter a configurable variable.
From Mark Oteiza.
-rw-r--r--paredit.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/paredit.el b/paredit.el
index 56b6b89..d902961 100644
--- a/paredit.el
+++ b/paredit.el
@@ -192,6 +192,9 @@ If point was on indentation, it stays in indentation."
;;;; Minor Mode Definition
+(defvar paredit-lighter " Paredit"
+ "Mode line lighter Paredit Mode.")
+
(defvar paredit-mode-map (make-sparse-keymap)
"Keymap for the paredit minor mode.")
@@ -208,7 +211,7 @@ Paredit behaves badly if parentheses are unbalanced, so exercise
caution when forcing Paredit Mode to be enabled, and consider
fixing unbalanced parentheses instead.
\\<paredit-mode-map>"
- :lighter " Paredit"
+ :lighter paredit-lighter
;; Setting `paredit-mode' to false here aborts enabling Paredit Mode.
(if (and paredit-mode
(not current-prefix-arg))