Skip to content

Instantly share code, notes, and snippets.

@rubenbelem
Forked from ivomachado/init.coffee
Created May 13, 2016 21:10
Show Gist options
  • Save rubenbelem/095cf3c8ec89221ed0196c18cc837e8e to your computer and use it in GitHub Desktop.
Save rubenbelem/095cf3c8ec89221ed0196c18cc837e8e to your computer and use it in GitHub Desktop.
# 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 log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# console.log "Saved! #{editor.getPath()}"
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# 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:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on OS X and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * https://atom.io/docs/latest/hacking-atom-debugging#check-the-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
'.editor':
'ctrl-left' : 'editor:move-to-previous-subword-boundary'
'ctrl-right' : 'editor:move-to-next-subword-boundary'
'ctrl-shift-left' : 'editor:select-to-previous-subword-boundary'
'ctrl-shift-right' : 'editor:select-to-next-subword-boundary'
'atom-text-editor:not([mini])':
'alt-shift-u' : 'emmet:update-tag'
'alt-shift-r' : 'emmet:remove-tag'
'alt-shift-e' : 'emmet:expand-abbreviation'
'alt-shift-w' : 'emmet:wrap-with-abbreviation'
'alt-left' : 'emmet:decrement-number-by-1'
'alt-right' : 'emmet:increment-number-by-1'
'alt-down' : 'emmet:decrement-number-by-01'
'alt-up' : 'emmet:increment-number-by-01'
'ctrl-shift-down' : 'emmet:decrement-number-by-10'
'ctrl-shift-up' : 'emmet:increment-number-by-10'
'alt-shift-down' : 'multi-cursor:expandDown'
'alt-shift-up' : 'multi-cursor:expandUp'
'ctrl-alt-shift-down' : 'multi-cursor:move-last-cursor-down'
'ctrl-alt-shift-up' : 'multi-cursor:move-last-cursor-up'
'ctrl-alt-shift-right' : 'multi-cursor:move-last-cursor-right'
'ctrl-alt-shift-left' : 'multi-cursor:move-last-cursor-left'
'alt-/' : 'trailing-semicolon:semicolon'
'alt-,' : 'trailing-semicolon:comma'
'atom-text-editor[data-grammar~=python]:not(.mini)':
'shift-f6' : 'autocomplete-python:rename'
'body':
'ctrl-tab ^ctrl' : 'unset!'
'ctrl-tab' : 'pane:show-next-item'
'ctrl-shift-tab ^ctrl' : 'unset!'
'ctrl-shift-tab' : 'pane:show-previous-item'
packages: [
"aligner"
"atom-beautify"
"atom-typescript"
"autocomplete-angular-material"
"autocomplete-python"
"editor-stats"
"emmet"
"file-icons"
"flex-tool-bar"
"git-plus"
"git-time-machine"
"highlight-line"
"hyperclick"
"hyperlink-hyperclick"
"language-nginx"
"less-than-slash"
"linter"
"linter-pep8"
"linter-pylint"
"minimap"
"minimap-hide"
"multi-cursor"
"open-terminal-here"
"package-sync"
"pretty-json"
"sort-lines"
"sync-settings"
"tool-bar"
"trailing-semicolon"
]
{
"advanced-open-file": {
"createDirectories": true,
"createFileInstantly": true
},
"aligner": {
",-leftSpace": true,
":-alignment": "left",
":-leftSpace": true
},
"atom-beautify": {
"general": {
"_analyticsUserId": "e1412cf3-c75b-4042-8a7a-71829248321d",
"beautifyEntireFileOnSave": false
},
"html": {
"indent_size": 2,
"wrap_attributes_indent_size": 2
},
"js": {
"indent_size": 2
},
"python": {
"default_beautifier": "yapf"
}
},
"atom-minify": {
"cssMinifier": "CSSO",
"jsMinifier": "UglifyJS2"
},
"autocomplete-python": {
"outputProviderErrors": true,
"pythonPaths": "$PROJECT/venv/Scripts/python.exe;$PROJECT/venv/bin/python;python;",
"useSnippets": "required"
},
"core": {
"autoHideMenuBar": true,
"closeEmptyWindows": false,
"disabledPackages": [
"language-mustache",
"language-perl",
"language-ruby",
"language-ruby-on-rails",
"language-toml",
"language-yaml",
"language-go",
"language-clojure",
"language-make",
"language-objective-c",
"update-package-dependencies",
"dev-live-reload",
"spell-check",
"autocomplete-snippets",
"welcome",
"package-generator",
"open-on-github",
"language-todo",
"language-source",
"deprecation-cop",
"language-property-list"
],
"ignoredNames": [
"*.pyc",
"bower_components",
".vs",
"node_modules",
".idea",
"venv*"
],
"packagesWithKeymapsDisabled": [
"open-terminal-here",
"multi-cursor",
"trailing-semicolon"
],
"projectHome": "C:\\Users\\ivoma\\Worskpace",
"themes": [
"one-dark-ui",
"base16-tomorrow-dark-theme"
]
},
"editor": {
"fontSize": 12,
"scrollSensitivity": 90,
"showIndentGuide": true,
"softWrapHangingIndent": 80,
"tabLength": 4
},
"exception-reporting": {
"userId": "117dceae-6793-ec06-2b12-aeabdb531fb7"
},
"file-icons": {
"coloured": false
},
"jsformat": {
"format_on_save": false
},
"keyboard-localization": {
"useKeyboardLayout": "pt_BR"
},
"linter": {
"errorPanelHeight": 200,
"gutterEnabled": false,
"showErrorPanel": false,
"showProviderName": false,
"statusIconScope": "File"
},
"linter-gcc": {
"execPath": "g++"
},
"linter-js-standard": {
"lintMarkdownFiles": true,
"style": "happiness"
},
"linter-pylint": {
"pythonPath": "%p/venv/Scripts/python.exe"
},
"linter-python": {
"lintTrigger": "Lint only after change",
"underlineType": "Only place with error"
},
"minimap": {
"absoluteMode": true,
"plugins": {
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"minimap-hide": true,
"minimap-hideDecorationsZIndex": 0
}
},
"one-dark-ui": {
"fontSize": 14,
"layoutMode": "Compact"
},
"one-light-ui": {
"layoutMode": "Compact"
},
"package-sync": {
"createOnChange": true,
"forceOverwrite": true
},
"sync-settings": {
"extraFiles": [
"toolbar.cson",
"packages.cson"
],
"syncPackages": false
},
"tool-bar": {
"position": "Left"
},
"tree-view": {
"focusOnReveal": false,
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true
},
"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'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
/*
* Examples
* (To see them, uncomment and save)
*/
// style the background color of the tree view
.tree-view {
// background-color: #121212;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: #030303;
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
# This file is used by Flex Tool Bar to create buttons on your Tool Bar.
# For more information how to use this package and create your own buttons,
# read the documentation on https://atom.io/packages/flex-tool-bar
[
{
type: "button"
icon: "document"
callback: "application:new-file"
tooltip: "New File"
iconset: "ion"
}
{
type: "button"
icon: "archive"
callback: "core:save"
tooltip: "Save"
iconset: "ion"
}
{
type: "button"
icon: "document-text"
callback: "application:open-file"
tooltip: "Open File"
iconset: "ion"
}
{
type: "button"
icon: "folder"
callback: "application:open-folder"
tooltip: "Open Folder"
iconset: "ion"
}
{
type: "button"
icon: "ios-briefcase"
callback: "application:add-project-folder"
tooltip: "Add Project Folder"
iconset: "ion"
}
{
type: "spacer"
}
{
type: "button"
iconset: "ion"
icon: "ios-list-outline"
callback: "tree-view:toggle"
tooltip: "Toggle Project Tree"
}
{
type: "button"
iconset: "fa"
icon: "columns"
tooltip: "Split Screen"
callback: ["pane:split-right-and-copy-active-item"]
}
{
type: 'spacer'
}
{
type: "button"
iconset: "devicon"
icon: "git-plain"
callback: "git-plus:menu"
tooltip: "Git"
}
{
type: "url"
iconset: "ion"
icon: "bug"
url: "http://localhost:8000/static/index.html"
tooltip: "Debug Django Project"
show: [ "Python", "HTML", "JavaScript", "TypeScript" ]
}
{
type: 'spacer'
}
{
type: 'button'
tooltip: 'Open Settings View'
callback: 'settings-view:open'
icon: 'gear-a'
iconset: 'ion'
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment