[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 1f2389212b 024/195: Remove -enable and -dis
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 1f2389212b 024/195: Remove -enable and -disable entirely |
Date: |
Wed, 5 Jan 2022 02:59:18 -0500 (EST) |
branch: elpa/telephone-line
commit 1f2389212bda463a2fe89ff290b60be00f7d327c
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Remove -enable and -disable entirely
You can just use (telephone-line-mode t) and (telephone-line-mode nil)
---
telephone-line.el | 19 ++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)
diff --git a/telephone-line.el b/telephone-line.el
index a7f9a390bb..e7d170e360 100644
--- a/telephone-line.el
+++ b/telephone-line.el
@@ -268,27 +268,16 @@ separators, as they are conditional, are evaluated
on-the-fly."
(defvar -default-mode-line mode-line-format)
-:autoload
-(defun -disable ()
- "Revert to the default Emacs mode-line."
- (interactive)
- (setq-default mode-line-format -default-mode-line))
-
-:autoload
-(defun -enable ()
- "Setup the default mode-line."
- (interactive)
- (setq-default mode-line-format `("%e"
,@(telephone-line--generate-mode-line))))
-
:autoload
(define-minor-mode mode
"Toggle telephone-line on or off."
:group 'telephone-line
:global t
:lighter nil
- (if telephone-line-mode
- (-enable)
- (-disable)))
+ (setq-default mode-line-format
+ (if telephone-line-mode
+ `("%e" ,@(telephone-line--generate-mode-line))
+ -default-mode-line)))
) ; End of namespace
- [nongnu] branch elpa/telephone-line created (now ff526441a2), ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a84f75000c 017/195: Face hierarchy, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6fd0211efe 045/195: Add GPL badge, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line b6dcd27331 025/195: Add install instructions, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 502285b6bc 077/195: Add support for xah-fly-keys, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 315054ffb4 068/195: Minor fixes, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 48f2894e95 046/195: Add initial support for multiple frames, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1f2389212b 024/195: Remove -enable and -disable entirely,
ELPA Syncer <=
- [nongnu] elpa/telephone-line de93becc18 039/195: Merge pull request #12 from bjpbakker/fix/erc-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5ccd246d25 049/195: Documentation update, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ae636f7ca2 041/195: Version bump, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 8bc83573c3 061/195: Fix unicode separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1b52832b44 054/195: Nameless indentation, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 676b57d819 081/195: Made subseparator colors customizeable, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 00600d46c9 042/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3bb5cee841 074/195: Update readme.org, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line f5a1d0cbd2 057/195: Move over to new OO separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line cac54930a1 115/195: Improve even heights., ELPA Syncer, 2022/01/05