[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes for emacs 28
From: |
Philip K. |
Subject: |
Re: Changes for emacs 28 |
Date: |
Fri, 11 Sep 2020 17:44:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Tassilo Horn <tsdh@gnu.org> writes:
> Ergus <spacibba@aol.com> writes:
>
>> 1) Improve the default theme: Maybe set a default dark theme to make
>> emacs feel more modern.
>
> If you just set your background to some dark color, the stock Emacs
> default faces are actually very nice, see:
>
> https://functional.cafe/web/statuses/104411970368324669
>
> So just a default face light/dark toggle which doesn't use a theme but
> the standard faces seems like a good idea.
>
> Bye,
> Tassilo
That actually looks fairly similar to my own "dark mode":
(defun reverse-face (face &optional frame)
"Set FACE (in FRAME) to RGB inverse."
(interactive (list (read-face-name "Reverse face" (face-at-point t))))
(require 'color)
(ignore-errors
(let ((fg (face-attribute face :foreground frame))
(bg (face-attribute face :background frame)))
(set-face-attribute
face frame
:foreground (color-complement-hex fg)
:background (color-complement-hex bg)))))
(defun toggle-dark-mode ()
"Toggle dark mode."
(interactive)
(dolist (face '(mode-line default))
(reverse-face face)))
--
Philip K.
- Re: Changes for emacs 28, (continued)
- Re: Changes for emacs 28, Tassilo Horn, 2020/09/11
- Re: Changes for emacs 28,
Philip K. <=
- Re: Changes for emacs 28, Boruch Baum, 2020/09/07
- Re: Changes for emacs 28, Boruch Baum, 2020/09/08
- Re: Changes for emacs 28, Boruch Baum, 2020/09/08
- Re: Changes for emacs 28, Boruch Baum, 2020/09/08
- Re: Changes for emacs 28, Boruch Baum, 2020/09/08
- Re: Changes for emacs 28, TEC, 2020/09/08