[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: night-mode?
From: |
Juri Linkov |
Subject: |
Re: night-mode? |
Date: |
Sun, 22 Nov 2020 10:40:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> I've tested it with `emacs -rv`, and the effect of `night-mode`
>> is the same as `--reverse-video'. But a minor problem is that
>> after starting Emacs with `-rv`, the first invocation of `night-mode`
>> has no effect.
>
> The initial-value of `night-mode` is arbitrarily set to nil, which is
> bound to be wrong half the times, yes.
>
> That's one of the problems in the current code.
> Patches welcome,
Maybe something like this:
diff --git a/lisp/startup.el b/lisp/startup.el
index 9f67dfde12..71d640701b 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -834,6 +834,7 @@ tty-handle-args
argval)))
default-frame-alist))
((member argi '("-r" "-rv" "-reverse"))
+ (setq night-mode t)
(push '(reverse . t)
default-frame-alist))
((equal argi "-color")
- night-mode?, Stefan Monnier, 2020/11/20
- Re: night-mode?, Pankaj Jangid, 2020/11/20
- Re: night-mode?, Juri Linkov, 2020/11/21
- Re: night-mode?, Stefan Monnier, 2020/11/21
- Re: night-mode?,
Juri Linkov <=
- Re: night-mode?, Stefan Monnier, 2020/11/22
- Re: night-mode?, Eli Zaretskii, 2020/11/22
- Re: night-mode?, Arthur Miller, 2020/11/22
- Re: night-mode?, Jean Louis, 2020/11/22
- Re: night-mode?, Arthur Miller, 2020/11/23
- Re: night-mode?, Jean Louis, 2020/11/23
- Re: night-mode?, Arthur Miller, 2020/11/23
- Re: night-mode?, Jean Louis, 2020/11/23
- Re: night-mode?, Arthur Miller, 2020/11/24
- Re: night-mode?, Jean Louis, 2020/11/24