Skip to content

Instantly share code, notes, and snippets.

@commander-trashdin
Last active March 13, 2020 23:02
Show Gist options
  • Save commander-trashdin/87f9d9bcfac036a24dc4247d4af40e19 to your computer and use it in GitHub Desktop.
Save commander-trashdin/87f9d9bcfac036a24dc4247d4af40e19 to your computer and use it in GitHub Desktop.
Atom Settings Backup by https://atom.io/packages/sync-settings
# prevent core:copy if and only if there's one selection in
# the active editor (mini or not) and its length equals 0
atom.commands.add 'atom-text-editor', 'core:copy', (e) ->
editor = e.currentTarget.getModel()
# do nothing if there's more than 1 selection
return if editor.getSelectedBufferRanges().length > 1
# get the starting and ending points of the selection
{start, end} = editor.getSelectedBufferRange()
# stop the command from immediate propagation (i.e.
# executing the same command on the same element or
# an element higher up the DOM tree). This works
# because atom executes commands in the reverse order
# they were registered with atom.commands.add, and this
# one's added after the core commands are already
# registered.
if start.column is end.column and start.row is end.row
e.stopImmediatePropagation()
'body':
'ctrl-x o': 'window:focus-next-pane'
'ctrl-x 2': 'pane:split-down'
'ctrl-x 3': 'pane:split-right'
'atom-text-editor[data-grammar~="lisp"]:not(.autocomplete-active)':
'tab': 'lisp-paredit:indent'
{
"about": {
"version": "1.9.1"
},
"advanced-open-file": {
"version": "0.16.8"
},
"archive-view": {
"version": "0.65.2"
},
"atom-beautify": {
"version": "0.33.4"
},
"atom-dark-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-dark-ui": {
"version": "0.53.3",
"theme": "ui"
},
"atom-discord": {
"version": "2.0.2"
},
"atom-haskell": {
"version": "0.4.0"
},
"atom-ide-ui": {
"version": "0.13.0"
},
"atom-light-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-light-ui": {
"version": "0.46.3",
"theme": "ui"
},
"atom-material-syntax-dark": {
"version": "1.0.0",
"theme": "syntax"
},
"atom-material-ui": {
"version": "2.1.3",
"theme": "ui"
},
"atom-sublime-monokai-syntax": {
"version": "0.4.4",
"theme": "syntax"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-clang": {
"version": "0.13.0"
},
"autocomplete-css": {
"version": "0.17.5"
},
"autocomplete-haskell": {
"version": "1.0.1"
},
"autocomplete-html": {
"version": "0.8.8"
},
"autocomplete-plus": {
"version": "2.42.3"
},
"autocomplete-python": {
"version": "1.16.0"
},
"autocomplete-snippets": {
"version": "1.12.1"
},
"autoflow": {
"version": "0.29.4"
},
"autosave": {
"version": "0.24.6"
},
"background-tips": {
"version": "0.28.0"
},
"base16-tomorrow-dark-theme": {
"version": "1.6.0",
"theme": "syntax"
},
"base16-tomorrow-light-theme": {
"version": "1.6.0",
"theme": "syntax"
},
"bookmarks": {
"version": "0.46.0"
},
"bracket-matcher": {
"version": "0.91.2"
},
"busy-signal": {
"version": "2.0.1"
},
"clang-format": {
"version": "2.0.8"
},
"command-palette": {
"version": "0.43.5"
},
"dalek": {
"version": "0.2.2"
},
"dbg": {
"version": "1.6.3"
},
"dbg-gdb": {
"version": "1.7.8"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"dracula-syntax": {
"version": "2.0.7",
"theme": "syntax"
},
"dracula-ui": {
"version": "0.6.0",
"theme": "ui"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"file-watcher": {
"version": "2.0.0"
},
"find-and-replace": {
"version": "0.219.3"
},
"fonts": {
"version": "3.10.0"
},
"fuzzy-finder": {
"version": "1.14.1"
},
"git-diff": {
"version": "1.3.9"
},
"github": {
"version": "0.34.1"
},
"go-to-line": {
"version": "0.33.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"gruvbox-dark-ui": {
"version": "1.1.0",
"theme": "ui"
},
"gruvbox-plus-syntax": {
"version": "1.3.1",
"theme": "syntax"
},
"haskell-ghc-mod": {
"version": "2.2.5"
},
"haskell-pointfree": {
"version": "0.2.0"
},
"haskell-scry": {
"version": "1.0.9"
},
"hasklig": {
"version": "0.4.0"
},
"ide-haskell": {
"version": "2.4.1"
},
"ide-haskell-cabal": {
"version": "2.4.0"
},
"ide-haskell-hasktags": {
"version": "0.0.16"
},
"ide-haskell-hoogle": {
"version": "0.1.2"
},
"ide-haskell-repl": {
"version": "0.9.4"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"indent-detective": {
"version": "0.4.0"
},
"ink": {
"version": "0.12.3"
},
"intentions": {
"version": "1.1.5"
},
"julia-client": {
"version": "0.12.3"
},
"keybinding-resolver": {
"version": "0.39.0"
},
"language-c": {
"version": "0.60.18"
},
"language-clojure": {
"version": "0.22.8"
},
"language-coffee-script": {
"version": "0.50.0"
},
"language-cpp14": {
"version": "0.6.2"
},
"language-csharp": {
"version": "1.1.0"
},
"language-css": {
"version": "0.44.2"
},
"language-gfm": {
"version": "0.90.7"
},
"language-git": {
"version": "0.19.1"
},
"language-go": {
"version": "0.47.1"
},
"language-haskell": {
"version": "1.19.4"
},
"language-haskell-scoped": {
"version": "0.1.1"
},
"language-html": {
"version": "0.53.0"
},
"language-hyperlink": {
"version": "0.17.1"
},
"language-java": {
"version": "0.31.4"
},
"language-javascript": {
"version": "0.134.0"
},
"language-json": {
"version": "1.0.4"
},
"language-julia": {
"version": "0.19.2"
},
"language-latex": {
"version": "1.2.0"
},
"language-less": {
"version": "0.34.3"
},
"language-lisp": {
"version": "0.2.0"
},
"language-make": {
"version": "0.23.0"
},
"language-mustache": {
"version": "0.14.5"
},
"language-objective-c": {
"version": "0.16.0"
},
"language-perl": {
"version": "0.38.1"
},
"language-php": {
"version": "0.44.4"
},
"language-property-list": {
"version": "0.9.1"
},
"language-python": {
"version": "0.53.3"
},
"language-ruby": {
"version": "0.72.22"
},
"language-ruby-on-rails": {
"version": "0.25.3"
},
"language-rust-bundled": {
"version": "0.1.0"
},
"language-sass": {
"version": "0.62.1"
},
"language-shellscript": {
"version": "0.28.0"
},
"language-source": {
"version": "0.9.0"
},
"language-sql": {
"version": "0.25.10"
},
"language-text": {
"version": "0.7.4"
},
"language-todo": {
"version": "0.29.4"
},
"language-toml": {
"version": "0.20.0"
},
"language-typescript": {
"version": "0.6.0"
},
"language-xml": {
"version": "0.35.3"
},
"language-yaml": {
"version": "0.32.0"
},
"latex": {
"version": "0.50.2"
},
"latex-completions": {
"version": "0.3.6"
},
"line-ending-selector": {
"version": "0.7.7"
},
"link": {
"version": "0.31.6"
},
"linter": {
"version": "2.3.1"
},
"linter-clang": {
"version": "4.1.2"
},
"linter-gcc": {
"version": "0.9.0"
},
"linter-ui-default": {
"version": "1.8.1"
},
"lisp-paredit": {
"version": "0.6.0"
},
"markdown-preview": {
"version": "0.160.2"
},
"metrics": {
"version": "1.8.1"
},
"minimap": {
"version": "4.29.9"
},
"native-ui": {
"version": "0.27.0",
"theme": "ui"
},
"notifications": {
"version": "0.71.0"
},
"one-dark-syntax": {
"version": "1.8.4",
"theme": "syntax"
},
"one-dark-ui": {
"version": "1.12.5",
"theme": "ui"
},
"one-light-syntax": {
"version": "1.8.4",
"theme": "syntax"
},
"one-light-ui": {
"version": "1.12.5",
"theme": "ui"
},
"open-on-github": {
"version": "1.3.2"
},
"output-panel": {
"version": "0.3.4"
},
"package-generator": {
"version": "1.3.0"
},
"parinfer": {
"version": "1.23.0"
},
"python-indent": {
"version": "1.2.5"
},
"seti-syntax": {
"version": "1.2.0",
"theme": "syntax"
},
"seti-ui": {
"version": "1.11.0",
"theme": "ui"
},
"settings-view": {
"version": "0.261.3"
},
"slima": {
"version": "2.4.0"
},
"snippets": {
"version": "1.5.0"
},
"solarized-dark-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"solarized-light-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"spell-check": {
"version": "0.76.0"
},
"status-bar": {
"version": "1.8.17"
},
"styleguide": {
"version": "0.49.12"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "4.3.1"
},
"tabs": {
"version": "0.110.0"
},
"timecop": {
"version": "0.36.2"
},
"tool-bar": {
"version": "1.2.2"
},
"tree-view": {
"version": "0.228.0"
},
"uber-juno": {
"version": "0.3.0"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.7"
},
"wrap-guide": {
"version": "0.41.0"
}
}
{
"*": {
"atom-beautify": {
"c": {
"beautify_on_save": true,
"default_beautifier": "clang-format"
},
"cpp": {
"configPath": "/home/aun/SDA/shad-cpp0/.clang-format",
"default_beautifier": "clang-format"
},
"general": {
"_analyticsUserId": "2bd4fa7b-ea8f-4161-9a40-edd750dd60f3",
"muteAllErrors": true,
"showLoadingView": false
},
"haskell": {
"beautify_on_save": true,
"default_beautifier": "hindent"
}
},
"atom-haskell": {
"hasAddedConfiguration": true
},
"atom-material-ui": {
"colors": {
"abaseColor": "#966300",
"accentColor": "#500a5c",
"genAccent": true
},
"tabs": {
"compactTabs": true
},
"ui": {
"panelContrast": true,
"panelShadows": true
}
},
"atom-slime": {
"advancedSettings": {
"showSwankDebug": true
},
"slimePath": "/home/aun/Programs/slime-master"
},
"autocomplete-clang": {
"clangCommand": "clang-format-8",
"std c++": "c++17"
},
"autocomplete-haskell": {
"hideHintPanelIfEmpty": false
},
"autocomplete-plus": {
"confirmCompletion": "tab always, enter when suggestion explicitly selected"
},
"autocomplete-python": {
"useKite": false
},
"bracket-matcher": {
"autocompleteBrackets": false,
"autocompleteCharacters": [
"()",
"[]",
"{}",
"\"\"",
"“”",
"‘’",
"«»",
"‹›"
]
},
"clang-format": {
"formatCPlusPlusOnSave": true
},
"core": {
"automaticallyUpdate": false,
"disabledPackages": [
"language-c",
"haskell-pointfree",
"haskell-scry",
"language-perl",
"language-php",
"language-ruby",
"language-ruby-on-rails",
"language-rust-bundled",
"language-sql",
"minimap",
"python-indent",
"atom-haskell",
"lisp-paredit",
"indent-detective",
"ink",
"uber-juno",
"julia-client",
"linter-gcc"
],
"telemetryConsent": "limited",
"themes": [
"seti-ui",
"atom-sublime-monokai-syntax"
]
},
"editor": {
"autoIndent": false,
"fontFamily": "Inconsolata",
"fontSize": 22,
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true
},
"exception-reporting": {
"userId": "cad2b41d-b321-49ec-8e6a-2be8a7ca54ec"
},
"fonts": {
"fontFamily": "FiraCode"
},
"gruvbox-plus-syntax": {
"variant": "No Dimmed Colors"
},
"haskell-ghc-mod": {
"builderManagement": true,
"debug": true,
"experimental": true,
"lowMemorySystem": true,
"onChangeCheck": true,
"onChangeLint": true,
"onSelectionShow": "typeInfo",
"suppressGhcPackagePathWarning": true
},
"ide-haskell": {
"messageDisplayFrontend": "linter",
"onCursorMove": "Show Tooltip",
"onSavePrettify": true,
"startupMessageIdeBackend": false,
"switchTabOnCheck": false
},
"ide-haskell-cabal": {
"cabal": {
"activeGhcVersion": "8.4"
}
},
"ide-haskell-repl": {
"defaultRepl": "stack"
},
"julia-client": {
"firstBoot": false,
"juliaOptions": {
"bootMode": "Basic"
},
"juliaPath": "/home/aun/Programs/julia-1.1.1/bin/julia",
"uiOptions": {
"enableMenu": true,
"enableToolBar": true,
"layouts": {
"defaultPanes": {
"documentation": false,
"plotPane": false
}
}
}
},
"linter-clang": {
"clangDefaultCppFlags": "-Wall -Werror -std=c++17",
"executablePath": "clang++"
},
"linter-gcc": {
"execPath": "g++",
"gccDebug": true,
"gccDefaultCFlags": "-c -Wall -Werror",
"gccDefaultCppFlags": "-Wall -Werror -fsanitize=address,undefined -fno-sanitize-recover=all -fsanitize-undefined-trap-on-error -std=c++17 -O2 ",
"gccErrorLimit": -1,
"gccIncludePaths": "/home/aun/SDA/*",
"gccLintOnTheFly": true
},
"linter-ui-default": {
"hidePanelWhenEmpty": false,
"panelHeight": 294
},
"lisp-paredit": {
"enabled": false,
"indentationForms": [
"&",
"monitor-exit",
"/^case/",
"try",
"/^reify/",
"finally",
"/^let/",
"/^import/",
"new",
"/^deftype/",
"/^let/",
"fn",
"recur",
"/^set.*!$/",
".",
"var",
"quote",
"catch",
"throw",
"monitor-enter",
"ns",
"in-ns",
"/^([^/]+/)?def/",
"/^if/",
"/^when/",
"/^unless/",
"while",
"for",
"/(^|/)with/",
"testing",
"while",
"cond",
"condp",
"apply",
"binding",
"locking",
"proxy",
"reify",
"/^extend/",
"facts",
"do",
"doseq",
"dorun",
"doall",
"dosync",
"start",
"stop"
],
"strict": false
},
"minimap": {
"displayMinimapOnLeft": true
},
"parinfer": {
"show-open-file-dialog?": false,
"use-smart-mode?": true
},
"seti-syntax": {
"themeColor": "Green"
},
"seti-ui": {
"compactView": true,
"themeColor": "Purple"
},
"slima": {
"advancedSettings": {
"connectionAttempts": 8
},
"slimePath": "/home/aun/Programs/slime-master"
},
"sync-settings": {
"hiddenSettings": {}
},
"tabs": {},
"tool-bar": {
"position": "Left",
"visible": false
},
"tree-view": {},
"uber-juno": {
"disable": true
},
"welcome": {
"showOnStartup": false
}
},
".haskell.latex.tex.text": {
"editor": {
"autoIndent": false,
"autoIndentOnPaste": false
}
},
".emacs.lisp.source": {
"editor": {
"autoIndent": true,
"autoIndentOnPaste": true
}
},
".source.yasnippet": {
"editor": {
"autoIndent": true
}
},
".lisp.source": {
"editor": {
"autoIndent": true,
"autoIndentOnPaste": true,
"preferredLineLength": 100,
"scrollPastEnd": false,
"softWrap": true,
"softWrapAtPreferredLineLength": true,
"tabType": "auto"
}
},
".lisp-repl.source": {
"editor": {
"autoIndent": true,
"autoIndentOnPaste": true,
"showIndentGuide": true,
"softWrap": true,
"softWrapAtPreferredLineLength": true,
"tabType": "soft"
}
},
".julia.source": {
"editor": {
"autoIndent": true
}
},
".hsig.source": {
"editor": {
"autoIndent": false,
"autoIndentOnPaste": false
}
},
".hsc2hs.source": {
"editor": {
"autoIndent": false,
"autoIndentOnPaste": false
}
},
".haskell.source": {
"editor": {
"autoIndent": true,
"autoIndentOnPaste": true
}
},
".cabal.source": {
"editor": {
"autoIndent": true,
"autoIndentOnPaste": true
}
},
".c2hs.source": {
"editor": {
"autoIndent": false,
"autoIndentOnPaste": false
}
}
}
# snippets file (not found)
// styles file (not found)
atom-text-editor .gutter {
min-width: auto !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment