Free Operator Mono clone for Atom
A stylish way to code!
Check out the screenshots.
Download and install Fira Code font into your system. Installation instructions
Download and install Script12 BT font into your system in the same manner. Thanks to @kencrocken for finding this font :)
The current version (last checked September 2017) of the fonts can also be found in this repository.
To use Fira Code properly you need to enable ligatures. There are two ways to do this, see below:
Bring up Atom and go to Settings > Themes. Search for Operator Mono and install.
This syntax theme has been built to support this Fira Code, it is built from scratch using the Oceanic Next Italic palette and it will enable ligatures, and make certain attributes italic. It will also be your theme.
If you prefer to use your own syntax theme, you have to edit your styles.less and insert these lines:
atom-text-editor {
text-rendering: optimizeLegibility;
&.editor .syntax--string.syntax--quoted,
&.editor .syntax--string.syntax--regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
}
In order to enable the alternative font for italic, which is probably what you came for, you have to manually edit your styles.less file and merge the code snippet found in styles.less
in this repository with your own.
If you have any personal preferences, such as applying "Operator Mono" for comments as well, just add .syntax--comment
in the css selector list.
Atom version
The instructions / code works for the latest versions of Atom (1.20.x) and Atom Beta (1.21.x). Please make sure your editor is updated.
Are your ligatures not being applied correctly?
- In Editor Settings, you might need to enter "Fira Code" in "Font Family"
- Hunt down and disable interfering packages that modifies fonts, such as "fonts"
The screenshots below are taken with the Operator Mono theme.