summaryrefslogtreecommitdiff
path: root/common.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-01-29 12:33:03 +0800
committerJSDurand <mmemmew@gmail.com>2021-01-29 12:33:03 +0800
commitc8d4224e42a710b262e8ba67d720f6eff4e89fcb (patch)
treebb631456e910e1aeb8984e00db8e3a605f438561 /common.el
parent43afe6c5db55704f787aaee4cedd7f4c69206b8b (diff)
Change the directory to .emacs.d now.
Now I don't have to use a special command to launch Emacs. And the configuration files are placed in the normal position now.
Diffstat (limited to 'common.el')
-rw-r--r--common.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/common.el b/common.el
index 3b75063..25b775d 100644
--- a/common.el
+++ b/common.el
@@ -186,11 +186,14 @@ ARG means do this command ARG times."
;;; Hide some minor mode from the mode line display.
;;;###autoload
-(defmacro durand-hide-minor-mode (minor &optional to-require)
+(defmacro durand-hide-minor-mode (minor &optional to-require light)
"Hide MINOR from the mode line.
-Require TO-REQUIRE so that we don't have errors."
+Require TO-REQUIRE so that we don't have errors.
+
+Optional LIGHT means to use the lighter name instead of
+completely hiding it."
(cond (to-require (require to-require)))
- `(setcdr (assq ',minor minor-mode-alist) (list "")))
+ `(setcdr (assq ',minor minor-mode-alist) (list (or ,light ""))))
(provide 'common)
;;; common.el ends here.