Skip to content

Instantly share code, notes, and snippets.

@Laurian
Created June 8, 2015 14:07
Show Gist options
  • Save Laurian/ca3ff713c76cc1bf81a0 to your computer and use it in GitHub Desktop.
Save Laurian/ca3ff713c76cc1bf81a0 to your computer and use it in GitHub Desktop.
Atom style.less that disables Fira Code ligatures on current line, for easier editing. See it in action: http://gfycat.com/LeftRequiredCrownofthornsstarfish
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
// Enable all the Fira Code goodness
atom-text-editor {
text-rendering: optimizeLegibility;
-webkit-font-feature-settings: "liga" 1;
font-feature-settings: "liga" 1;
}
// Disable it for current line with https://github.com/richrace/highlight-line
atom-text-editor::shadow {
// The cursor line important to use rgba for opacity, also requires !important
// to override any theme.
.line.highlight-line {
// background: rgba(255, 0, 0, 0.3) !important;
text-rendering: optimizeSpeed;
-webkit-font-feature-settings: normal;
font-feature-settings: normal;
}
// Replace 'solid', with 'dashed' or 'dotted' depending of what you have
// set in the settings page.
// This is for the bottom line (underline)
.line.highlight-line-multi-line-solid-bottom {
border-bottom-color: red;
}
// This is for the top line when you have the selection borders enabled.
.line.highlight-line-multi-line-solid-top {
border-top-color: red;
}
}
/*
x == 0
el === document.body
true != false
true !== false
n >= 0
i <= Integer.MAX_INT
A.id <> NULL
true <=> false
x := -1
++i
1..10
1...9
mask >> 4
cout << "Hola";
!!object
// comment
<hr/>
(-> s vec)
(->> xs (map inc))
((w) => w.Length)
[X || X <- [1,2,3]]
<<-
::keyword
#(+ 1 %)
#_form
(>>=) :: m a -> (a -> m b) -> m b
(=<<) :: Monad m => (a -> m b) -> m a -> m b
(>>=) :: (Num a) => a -> a -> a
a /=b ++ a <- c << [1..2] -<<
a == w <- rng -< ()
# Ruby
=~
!~
#{abc}
(. abc)
(.- abc)
<!!
>!!
<!
>!
~@ macro
#'var
#"regexp"
*in*
*out*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment