Skip to content

Instantly share code, notes, and snippets.

@glnster
Last active September 26, 2016 21:13
Show Gist options
  • Save glnster/810391bedff03c548db6ae9a24c4ca68 to your computer and use it in GitHub Desktop.
Save glnster/810391bedff03c548db6ae9a24c4ca68 to your computer and use it in GitHub Desktop.
//for atom sync settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
# atom.workspaceView.eachEditorView (editorView) ->
# editor = editorView.getEditor()
# if path.extname(editor.getPath()) is '.md'
# editor.setSoftWrap(true)
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# '.editor':
# 'enter': 'editor:newline'
#
# 'body':
# 'ctrl-P': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
'atom-workspace':
'alt-cmd-m': 'minimap:toggle'
[
{
"name": "Pastel",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "about",
"version": "1.5.3"
},
{
"name": "angularjs",
"version": "0.3.5"
},
{
"name": "archive-view",
"version": "0.61.1"
},
{
"name": "atom-beautify",
"version": "0.29.12"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.52.0",
"theme": "ui"
},
{
"name": "atom-easy-jsdoc",
"version": "4.7.1"
},
{
"name": "atom-handlebars",
"version": "1.3.0"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.44.0",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "0.4.6",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "1.3.6",
"theme": "ui"
},
{
"name": "atom-terminal",
"version": "0.8.0"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.0"
},
{
"name": "autocomplete-css",
"version": "0.11.2"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-modules",
"version": "1.6.3"
},
{
"name": "autocomplete-paths",
"version": "1.0.2"
},
{
"name": "autocomplete-plus",
"version": "2.31.1"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.27.0"
},
{
"name": "autosave",
"version": "0.23.1"
},
{
"name": "background-tips",
"version": "0.26.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.41.0"
},
{
"name": "bracket-matcher",
"version": "0.82.1"
},
{
"name": "command-palette",
"version": "0.38.0"
},
{
"name": "console-log",
"version": "1.5.1"
},
{
"name": "css-snippets",
"version": "1.0.0"
},
{
"name": "deprecation-cop",
"version": "0.54.1"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "docblockr",
"version": "0.8.5"
},
{
"name": "ember-snippets",
"version": "1.4.0"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "exception-reporting",
"version": "0.39.0"
},
{
"name": "expand-selection-to-quotes",
"version": "0.9.0"
},
{
"name": "file-icons",
"version": "1.7.19"
},
{
"name": "find-and-replace",
"version": "0.201.0"
},
{
"name": "fuzzy-finder",
"version": "1.3.0"
},
{
"name": "git-diff",
"version": "1.1.0"
},
{
"name": "git-plus",
"version": "5.17.1"
},
{
"name": "git-status",
"version": "0.3.4"
},
{
"name": "git-time-machine",
"version": "1.5.3"
},
{
"name": "go-to-line",
"version": "0.31.0"
},
{
"name": "grammar-selector",
"version": "0.48.1"
},
{
"name": "image-view",
"version": "0.58.2"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "keybinding-resolver",
"version": "0.35.0"
},
{
"name": "keyboard-scroll",
"version": "0.4.0"
},
{
"name": "language-apache",
"version": "1.6.0"
},
{
"name": "language-babel",
"version": "2.42.0"
},
{
"name": "language-c",
"version": "0.52.1"
},
{
"name": "language-clojure",
"version": "0.21.0"
},
{
"name": "language-coffee-script",
"version": "0.47.2"
},
{
"name": "language-csharp",
"version": "0.12.1"
},
{
"name": "language-css",
"version": "0.37.1"
},
{
"name": "language-dotfiles",
"version": "0.4.1"
},
{
"name": "language-gfm",
"version": "0.88.0"
},
{
"name": "language-git",
"version": "0.15.0"
},
{
"name": "language-go",
"version": "0.42.1"
},
{
"name": "language-html",
"version": "0.45.1"
},
{
"name": "language-hyperlink",
"version": "0.16.0"
},
{
"name": "language-java",
"version": "0.23.0"
},
{
"name": "language-javascript",
"version": "0.119.0"
},
{
"name": "language-json",
"version": "0.18.2"
},
{
"name": "language-less",
"version": "0.29.5"
},
{
"name": "language-make",
"version": "0.22.2"
},
{
"name": "language-mustache",
"version": "0.13.0"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.35.0"
},
{
"name": "language-php",
"version": "0.37.2"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.45.0"
},
{
"name": "language-ruby",
"version": "0.69.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.0"
},
{
"name": "language-sass",
"version": "0.56.0"
},
{
"name": "language-shellscript",
"version": "0.22.4"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.23.0"
},
{
"name": "language-text",
"version": "0.7.1"
},
{
"name": "language-todo",
"version": "0.28.0"
},
{
"name": "language-toml",
"version": "0.18.0"
},
{
"name": "language-xml",
"version": "0.34.9"
},
{
"name": "language-yaml",
"version": "0.26.0"
},
{
"name": "line-ending-selector",
"version": "0.5.0"
},
{
"name": "link",
"version": "0.31.1"
},
{
"name": "linter",
"version": "1.11.16"
},
{
"name": "linter-eslint",
"version": "7.3.2"
},
{
"name": "linter-markdown",
"version": "3.0.2"
},
{
"name": "linter-scss-lint",
"version": "3.0.4"
},
{
"name": "linter-tidy",
"version": "2.2.0"
},
{
"name": "markdown-preview",
"version": "0.158.0"
},
{
"name": "metrics",
"version": "0.53.1"
},
{
"name": "minimap",
"version": "4.25.0"
},
{
"name": "minimap-bookmarks",
"version": "0.4.2"
},
{
"name": "minimap-codeglance",
"version": "0.4.5"
},
{
"name": "minimap-cursorline",
"version": "0.2.0"
},
{
"name": "minimap-find-and-replace",
"version": "4.5.1"
},
{
"name": "minimap-highlight-selected",
"version": "4.4.0"
},
{
"name": "minimap-linter",
"version": "1.6.0"
},
{
"name": "monokai",
"version": "0.18.0",
"theme": "syntax"
},
{
"name": "notifications",
"version": "0.65.0"
},
{
"name": "one-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.5.0",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.5.0",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.0"
},
{
"name": "package-generator",
"version": "1.0.0"
},
{
"name": "pigments",
"version": "0.35.1"
},
{
"name": "pretty-json",
"version": "1.6.0"
},
{
"name": "project-manager",
"version": "3.2.3"
},
{
"name": "set-syntax",
"version": "0.3.0"
},
{
"name": "seti-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "seti-ui",
"version": "1.3.2",
"theme": "ui"
},
{
"name": "settings-view",
"version": "0.242.2"
},
{
"name": "slime",
"version": "1.6.1",
"theme": "syntax"
},
{
"name": "snippets",
"version": "1.0.2"
},
{
"name": "solarized-dark-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "sort-lines",
"version": "0.14.0"
},
{
"name": "spell-check",
"version": "0.67.1"
},
{
"name": "status-bar",
"version": "1.4.1"
},
{
"name": "styleguide",
"version": "0.47.0"
},
{
"name": "symbols-view",
"version": "0.113.0"
},
{
"name": "sync-settings",
"version": "0.7.2"
},
{
"name": "synced-sidebar",
"version": "0.4.3"
},
{
"name": "tabs",
"version": "0.100.2"
},
{
"name": "tabs-to-spaces",
"version": "1.0.2"
},
{
"name": "tag",
"version": "0.4.0"
},
{
"name": "timecop",
"version": "0.33.2"
},
{
"name": "toggle-quotes",
"version": "1.0.0"
},
{
"name": "trailing-spaces",
"version": "0.3.2"
},
{
"name": "tree-view",
"version": "0.208.2"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.34.0"
},
{
"name": "whitespace",
"version": "0.33.0"
},
{
"name": "wrap-guide",
"version": "0.38.1"
}
]
{
"atom-material-ui": {
"colors": {},
"fonts": {
"fontSize": 13
},
"tabs": {
"compactTabs": true
},
"treeView": {
"compactList": true
},
"ui": {
"panelContrast": true,
"panelShadows": true
}
},
"console-log": {
"identifierCase": true,
"noSelectionInsert": true,
"semiColons": true
},
"core": {
"automaticallyUpdate": false,
"destroyEmptyPanes": false,
"disabledPackages": [
"vim-mode",
"color-picker"
],
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"themes": [
"atom-material-ui",
"atom-material-syntax"
],
"useReactEditor": true
},
"editor": {
"fontFamily": "Fira Code",
"fontSize": 11,
"lineHeight": 1.7,
"nonWordCharacters": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?…",
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"softWrap": true
},
"exception-reporting": {
"userId": "6a040c76-48e6-afb6-6cc1-42108040b524"
},
"linter": {
"errorPanelHeight": 36,
"gutterPosition": "Left",
"lintOnFly": false,
"showErrorInline": false,
"showErrorTabLine": true,
"showErrorTabProject": false,
"statusIconScope": "File"
},
"linter-eslint": {},
"metrics": {
"userId": "0a39e2741d5a245e90606e77ad69c9c80711ab13"
},
"minimap": {
"autoToggle": false,
"minimapScrollIndicator": false,
"plugins": {
"bookmarks": true,
"bookmarksDecorationsZIndex": 0,
"codeglance": true,
"codeglanceDecorationsZIndex": 0,
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"linter": true,
"linterDecorationsZIndex": 0,
"minimap-autohide": false,
"minimap-autohideDecorationsZIndex": 0
}
},
"recent-files": {
"updated": false
},
"release-notes": {
"viewedVersion": "0.60.0"
},
"remember-session": {
"height": 873,
"path": "",
"selectedTab": "",
"tabs": "",
"width": 1440,
"x": 0,
"y": 23
},
"seti-syntax": {},
"sync-settings": {
"analytics": false,
"checkForUpdatedBackup": false,
"syncSnippets": false
},
"welcome": {
"showOnStartup": false
}
}
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
/*
* 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
*/
// Imports
@import "octicon-mixins";
// Vars from theme:
// https://github.com/silvestreh/atom-material-ui/blob/master/styles/ui-variables.less
@text-color-ignored: fade(@text-color, 50%);
@text-color-added: lighten(@text-color-success, 10%);
@text-color-renamed: lighten(@text-color-info, 10%);
@text-color-modified: lighten(@text-color-warning, 10%);
@text-color-removed: @text-color-error;
// Custom vars
@bkgd: #263238;
@tree-text-color: #516e7a;
@selected-color: #80cbc4;
@faint-color: lighten(@bkgd, 2%);
/*
Layout, Panels
*/
.minimap .cursor-line {
background: green;
}
.command-palette {
font-size: 1rem;
.key-binding {
font-size: 1.4rem;
}
}
.tab-bar .tab {
font-size: 0.9rem !important;
}
.modal.overlay {
width: 800px;
margin-left: -400px;
}
.fuzzy-finder {
-webkit-font-smoothing: subpixel-antialiased;
width: 100%;
.primary-line,
.secondary-line {
font-size: 1rem !important;
}
}
// Line number tweaks
atom-text-editor::shadow .line-number {
// Make the line number highlight light instead of dark
&.cursor-line {
background: mix(@selected-color, @bkgd, 5%);
color: @selected-color;
}
// Make git colors match
&.git-line-added { border-left-color: @text-color-added !important; }
&.git-line-modified { border-left-color: @text-color-modified !important; }
&.git-line-renamed { border-left-color: @text-color-renamed !important; }
&.git-line-removed { border-left-color: @text-color-removed !important; }
}
.tree-view {
-webkit-font-smoothing: subpixel-antialiased;
font-size: 11px;
.list-item {
line-height: 18px !important;
}
.selected:before, .selected:before {
height: 18px !important;
}
.icon:before {
font-size: 11px;
width: 10px;
height: 10px;
opacity: .6;
position: relative;
top: 0px;
}
.header:before {
font-size: 10px !important;
opacity: .6;
margin-right: 0px !important;
}
}
// Tree folders
li.directory.entry.list-nested-item {
.list-item {
color: @tree-text-color;
}
// Highlight when open
&.expanded {
color: mix(@selected-color, @tree-text-color);
}
// Hover
&:hover > .list-item {
color: @selected-color !important;
}
// Change the git status to dots
&.status-modified,
&.status-added {
> .list-item,
> .icon-file-text {
color: @tree-text-color;
transition: color 100ms;
&:after {
.icon(10px);
margin-left: 5px;
}
}
}
&.status-modified {
> .list-item:after {
color: @text-color-modified;
content: '\f052';
}
}
&.status-added {
> .list-item:after {
color: @text-color-added;
content: '\f05d';
}
}
}
.editor {
-webkit-font-smoothing: auto;
}
atom-text-editor::shadow {
.line {
background: rgba(0, 0, 0, 0) !important;
}
.cursor {
transition: opacity 0.5s;
border-left-width: 2px;
}
.invisible-character,
.indent-guide {
opacity: 0.5;
}
.bracket-matcher {
.region {
outline: none;
border-bottom: 1px solid yellow;
}
}
.line-number.git-line-removed {
z-index: 999;
}
}
Theme related
.theme-atom-material-syntax {
atom-text-editor::shadow {
.string,
.constant.other.symbol,
.entity.other.inherited-class {
color: #C3DE9B !important;
}
.meta.function.method {
.variable.other.readwrite {
color: #F18F36;
}
}
.comment.block.documentation,
.comment.line,
.comment .storage.type.class {
color: #627982;
}
}
}
// Shared tree styles for file and directory
li.directory.entry.list-nested-item,
li.file.entry.list-item {
// Animation
transition: color 100ms;
&:before { transition: background 600ms; }
// Common selected state
&.selected:before {
border-left: 3px solid @selected-color;
background: mix(@selected-color, @bkgd, 10%) !important;
transition: background 200ms;
}
}
// Make the bkgd a little darker
atom-text-editor {
background-color: darken(@bkgd, 1%);
-webkit-font-smoothing: antialiased;
}
// Make gutter darker too
atom-text-editor::shadow .gutter {
background-color: darken(@bkgd, 0.7%);
}
// Make the selected row milder
atom-text-editor::shadow .line.cursor-line {
background: mix(@selected-color, @bkgd, 1%);
}
// Fix the selection, making it light instead of dark
atom-text-editor::shadow {
@selection-bkgd: mix(@selected-color, @bkgd, 25%);
.selection .region {
background: @selection-bkgd;
&:after {
border-color: @selection-bkgd;
}
}
}
// Overriding some annoying importants that were showing a gross brown color
// on some modified items
.focusable-panel:focus .selected[class*="status-"] {
&,
> span,
&.list-item.entry > span:before,
> .header.list-item > span.icon,
&.directory > .header.list-item:before {
color: @selected-color !important;
}
}
// Indent guide customization
// https://atom.io/packages/indent-guide-improved
.indent-guide-improved {
// background-color: @faint-color;
&.indent-guide-stack {
background-color: @faint-color;
&.indent-guide-active {
background-color: lighten(@faint-color, 5%);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment