Did you announce somewhere that the main branch of the repo changed from master to main? I missed the announcement and all the updates that happened ever since :-). I'm very late now but can't wait to see what has happened.
Thank you again for all your work.
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Yes, the main branch does not share any history with master. Sorry
about that!
Summary of the changes from 0.13.0 to >= 1.0.0 (now at 1.2.3 or 1.3.0-dev):
The packages modus-operandi-theme and modus-vivendi-theme are
replaced by modus-themes.
The modus-themes is available on GNU ELPA (last tagged release) or
MELPA (latest commit). If you are on Emacs28, they are built-in (last
tagged release).
The new package unifies all customisation options between the two
themes. For example:
Old variables are made obsolete and replaced by the new ones. Many of
them have new options. Here is an excerpt from my Emacs config:
;; NOTE: these are not my preferences! I am always testing various;; configurations. Though I still like what I have here.(setqmodus-themes-slanted-constructstmodus-themes-bold-constructsnilmodus-themes-fringesnil; {nil,'subtle,'intense};; Options for `modus-themes-lang-checkers': nil,;; 'straight-underline, 'subtle-foreground,;; 'subtle-foreground-straight-underline, 'intense-foreground,;; 'intense-foreground-straight-underline, 'colored-backgroundmodus-themes-lang-checkersnil;; Options for `modus-themes-mode-line': nil, '3d, 'moody,;; 'borderless, 'borderless-3d, 'borderless-moodymodus-themes-mode-line'borderless;; Options for `modus-themes-syntax': nil, 'faint,;; 'yellow-comments, 'green-strings,;; 'yellow-comments-green-strings, 'alt-syntax,;; 'alt-syntax-yellow-comments,'faint-yellow-commentsmodus-themes-syntax'faint-yellow-comments;; Options for `modus-themes-hl-line': nil, 'intense-background,;; 'accented-background, 'underline-neutral,;; 'underline-accented, 'underline-only-neutral,;; 'underline-only-accentedmodus-themes-hl-line'underline-neutralmodus-themes-subtle-line-numbersnilmodus-themes-paren-match'subtle-bold; {nil,'subtle-bold,'intense,'intense-bold};; Options for `modus-themes-links': nil, 'faint,;; 'neutral-underline, 'faint-neutral-underline, 'no-underline,;; 'underline-only, 'neutral-underline-onlymodus-themes-links'faint-neutral-underlinemodus-themes-no-mixed-fontsnil;; Options for `modus-themes-prompts': nil, 'subtle-accented,;; 'intense-accented, 'subtle-gray, 'intense-graymodus-themes-prompts'subtle-accentedmodus-themes-completions'moderate; {nil,'moderate,'opinionated};; Options for `modus-themes-region': nil, 'no-extend, 'bg-only,;; 'bg-only-no-extend, 'accent, 'accent-no-extendmodus-themes-region'accent-no-extendmodus-themes-diffs'deuteranopia; {nil,'desaturated,'fg-only,'bg-only,'deuteranopia}modus-themes-org-blocksnil; {nil,'grayscale,'rainbow}modus-themes-org-habitnil; {nil,'simplified,'traffic-light}modus-themes-headings; Read the manual for this one'((1.section-no-bold)(2.line-no-bold)(t.no-color))modus-themes-variable-pitch-uinilmodus-themes-variable-pitch-headingsnilmodus-themes-scale-headingsnilmodus-themes-scale-11.1modus-themes-scale-21.15modus-themes-scale-31.21modus-themes-scale-41.27modus-themes-scale-51.33)
Everything is documented in the official manual, which you can find
either on my website or, if
you have the new package installed, by evaluating the expression
(info "(modus-themes) Top"). Again, Emacs28 has this built-in.
Apart from unifying customisations, the new themes share common
functions and commands. For example, the modus-themes-toggle
command.
There is a macro, modus-themes-with-colors that lets you re-use
colour variables from the themes in arbitrary elisp. It always gets
the colour values of the active Modus theme. There are lots of
examples of this macro in the manual.
The manual also has other "Do It Yourself" documentation, such as how
to configure fonts, extend Org faces for new TODO keywords, and so on.
And, of course, the opening sections of the manual describe
installation and initial setup.
I read the beginning of this announcement but quickly discarded it because I was following the changes commit by commit and thought I knew everything. How fool was I :-). Sorry for the noise and thank you so much for your work.
Yes, the main branch does not share any history with master. Sorry about that!
Please don't apologize, you are doing an awesome work!!
What about adding a commit on top of the master branch to either:
delete everything to only keep a README with a message explaining the switch to main; or
update the README file with a sentence explaining the switch?
We discussed this with the Emacs maintainers: those old packages will be deleted in ~3 months from now from GNU ELPA (they have already been removed from MELPA).
Perhaps, the change to master should be along those lines mutatis mutandis:
(ift(require'modus-themes));; Don't require it during compilation!(eval-and-compile(let((msg"Package `modus-operandi-theme' is obsolete; use the new `modus-themes'"))(if(andnoninteractive(fboundp'byte-compile-warn))(byte-compile-warnmsg)(message"%s"msg))))(provide'modus-operandi-theme)
But I prefer to do that after we are done for good with the old packages. Let's say in June.
Re-bonjour! It has been about three months since we last discussed this
issue (the old packages are now replaced by modus-themes and the
project has switched from the master to the main branch).
The commit I just pushed:
commit 142d199ae8aac8aa48556eec08cecd0bf95f5c71 Author: Protesilaos Stavrou <info@protesilaos.com> Date: Sat Jul 17 09:50:44 2021 +0300 Render obsolete the 'master' branch 'main' has been the primary branch since December 2020 when the project underwent a major refactoring that brought about the unification of the two themes into a single code base. The packages 'modus-operandi-theme' and 'modus-vivendi-theme' were deleted from GNU ELPA yesterday (see Emacs bug#49574), following a ~3 month period during which they would unconditionally pull in the new 'modus-themes' package. This formally fixes issue 174 by Damien Cassou: <https://gitlab.com/protesilaos/modus-themes/-/issues/174>. README.md | 37 +- modus-operandi-theme.el | 4905 +---------------------------------------------- modus-vivendi-theme.el | 4905 +---------------------------------------------- 3 files changed, 54 insertions(+), 9793 deletions(-)
How the old files look:
;;; modus-operandi-theme.el --- Accessible light theme (WCAG AAA) [DEPRECATED] -*- lexical-binding:t -*-[...];;; Commentary:;;;; This package is obsolete. It has been replaced by `modus-themes',;; which includes the modus-operandi and modus-vivendi themes. Users;; who were tracking the `master' branch must switch to `main'.;;;; An Info manual should be distributed with the Modus themes.;; Evaluate this form to access it directly:;;;; (info "(modus-themes) Top");;;; Else check the web page: <https://protesilaos.com/modus-themes/>.;;;; A summary of all new customisation options is available here:;; <https://protesilaos.com/modus-themes/#h:bf1c82f2-46c7-4eb2-ad00-dd11fdd8b53f>.;; Or evaluate this form to read the Info manual:;;;; (info "(modus-themes) Customization Options");;; Code:(ift(require'modus-themes));; Don't require it during compilation!(eval-and-compile(let((msg"Package `modus-operandi-theme' is obsolete; use the new `modus-themes' or switch to the `main' branch"))(if(andnoninteractive(fboundp'byte-compile-warn))(byte-compile-warnmsg)(message"%s"msg))))(provide'modus-operandi-theme);;; modus-operandi-theme.el ends here
And the README:
# Modus themes (Modus Operandi and Modus Vivendi)1. The `master` branch is obsolete. **Switch to `main`**.2. The old packages, `modus-operandi-theme` and `modus-vivendi-theme` have been discontinued. **Switch to `modus-themes`**.3. A summary of all new customisation options is available here: <https://protesilaos.com/modus-themes/#h:bf1c82f2-46c7-4eb2-ad00-dd11fdd8b53f>. Or evaluate this form to read the Info manual: (info "(modus-themes) Customization Options")
I think we are done here. Closing this. Thanks again!