From c8d4224e42a710b262e8ba67d720f6eff4e89fcb Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 29 Jan 2021 12:33:03 +0800 Subject: 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. --- common.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'common.el') 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. -- cgit v1.2.3-18-g5258