Skip to content

Instantly share code, notes, and snippets.

@RB-Lab
Last active December 11, 2015 16:31
Show Gist options
  • Save RB-Lab/8f9752e08f7c522a1543 to your computer and use it in GitHub Desktop.
Save RB-Lab/8f9752e08f7c522a1543 to your computer and use it in GitHub Desktop.

Plugins

  • git-control
  • git-diff-popup
  • git-log
  • merge-conflicts
  • simple-drag-drop-text
  • tab-switcher
  • color-picker
  • editorconfig
  • linter
  • linter-eslint
  • atom-beautify
  • terminal-plus
  • highlight-selected
  • autocmplete-modules
  • autocomplete-paths
  • open-recent
  • dockblockr
  • js-hyperclick + hyperclick

  • javascript-snippets (?)
  • atom-ternjs (?)
  • imdone-atom (?)
  • change-case (?)
  • todo-show (?)

keymap

'.platform-linux atom-text-editor':
    'ctrl-d': 'editor:duplicate-lines'
    'alt-d': 'find-and-replace:select-next'
    'ctrl-alt-g': 'git-diff-details:toggle-git-diff-details'
    'ctrl-shift-up': 'editor:move-line-up'
    'ctrl-shift-down': 'editor:move-line-down'
'.platform-linux atom-workspace':
    'ctrl-tab': 'tab-switcher:next'

'atom-workspace atom-text-editor:not([mini])[data-grammar="source sass"]':
  'cmd-alt-l': 'sort-sass:sort'

Styles

atom-text-editor {
  background-color:#ecf0e0
}

atom-text-editor::shadow .selection .region {
  background-color: #c3c3d8;
}

.terminal-plus .icon-x::before {
  color: #828282;
}

atom-text-editor::shadow .highlights .highlight-selected .region {
  border-color: #DEBA8F;
  background-color: rgba(161, 179, 150, 0.18);
}

Some settings

"*":
    core:
        themes: [
            "atom-light-ui"
            "one-light-syntax"
        ]
        openEmptyEditorOnStart: false
    editor:
        invisibles:
            tab: ""
        tabLength: 4
        zoomFontWhenCtrlScrolling: true
        fontSize: 16
        showInvisibles: true

Snippets

'.source.js':
    'Describe BDD suite':
        'prefix': 'dsc'
        'body': 'describe(\'$1\', () => {\n\t$2\n});'
    'It test case in BDD style':
        'prefix': 'it'
        'body': 'it(\'should $1\', () => {\n\t$2\n});'
    'Debugger':
        'prefix': 'dbg'
        'body': 'debugger;'
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment