Skip to content

Instantly share code, notes, and snippets.

@LukaHorvat
Last active July 4, 2018 09:52
Show Gist options
  • Save LukaHorvat/356ef18bbcc7d0777551 to your computer and use it in GitHub Desktop.
Save LukaHorvat/356ef18bbcc7d0777551 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
#
# 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
'atom-workspace':
'ctrl-i': 'cursor-history:prev'
'ctrl-o': 'cursor-history:next'
'body':
'ctrl-shift-up': 'editor:add-selection-above'
'body':
'ctrl-shift-down': 'editor:add-selection-below'
'.platform-win32 atom-workspace, .platform-linux atom-workspace':
'alt-shift-T': 'atom-terminal:open-project-root'
'atom-text-editor':
'alt-up': 'expand-region:expand'
'alt-down': 'expand-region:shrink'
[
{
"name": "about",
"version": "1.9.1"
},
{
"name": "advanced-open-file",
"version": "0.16.8"
},
{
"name": "animated-page-scroll",
"version": "1.2.0"
},
{
"name": "archive-view",
"version": "0.65.0"
},
{
"name": "atom-dark-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.2",
"theme": "ui"
},
{
"name": "atom-ide-ui",
"version": "0.12.0"
},
{
"name": "atom-latex",
"version": "0.8.4"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.2",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "1.0.8",
"theme": "syntax"
},
{
"name": "atom-material-syntax-dark",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "atom-material-syntax-light",
"version": "0.4.6",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "2.1.3",
"theme": "ui"
},
{
"name": "atom-prettify",
"version": "0.1.3"
},
{
"name": "atom-terminal",
"version": "0.8.0"
},
{
"name": "atomic-chrome",
"version": "0.3.3"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-clang",
"version": "0.11.5"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-glsl",
"version": "0.2.3"
},
{
"name": "autocomplete-haskell",
"version": "1.0.1"
},
{
"name": "autocomplete-html",
"version": "0.8.4"
},
{
"name": "autocomplete-paths",
"version": "2.12.2"
},
{
"name": "autocomplete-plus",
"version": "2.40.6"
},
{
"name": "autocomplete-snippets",
"version": "1.12.0"
},
{
"name": "autoflow",
"version": "0.29.4"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.28.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.45.1"
},
{
"name": "bracket-matcher",
"version": "0.89.2"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "city-lights-syntax",
"version": "1.1.8",
"theme": "syntax"
},
{
"name": "city-lights-ui",
"version": "1.3.3",
"theme": "ui"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "commit-reminder",
"version": "0.1.1"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "elm-format",
"version": "3.0.0"
},
{
"name": "elmjutsu",
"version": "8.2.0"
},
{
"name": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "file-icons",
"version": "2.1.22"
},
{
"name": "find-and-replace",
"version": "0.215.11"
},
{
"name": "fuzzy-finder",
"version": "1.8.2"
},
{
"name": "gist",
"version": "1.1.0"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "git-diff-details",
"version": "1.4.0"
},
{
"name": "github",
"version": "0.17.0"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "haskell-debug",
"version": "0.3.6"
},
{
"name": "haskell-ghc-mod",
"version": "2.2.4"
},
{
"name": "haskell-hoogle",
"version": "0.1.3"
},
{
"name": "ide-haskell",
"version": "2.3.1"
},
{
"name": "ide-haskell-cabal",
"version": "2.2.0"
},
{
"name": "ide-haskell-hasktags",
"version": "0.0.15"
},
{
"name": "ide-haskell-hie",
"version": "0.10.1"
},
{
"name": "ide-haskell-hoogle",
"version": "0.1.2"
},
{
"name": "image-view",
"version": "0.62.4"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "jumpy",
"version": "4.2.0"
},
{
"name": "keybinding-resolver",
"version": "0.38.1"
},
{
"name": "language-arduino",
"version": "0.4.3"
},
{
"name": "language-c",
"version": "0.59.10"
},
{
"name": "language-clojure",
"version": "0.22.7"
},
{
"name": "language-coffee-script",
"version": "0.49.3"
},
{
"name": "language-csharp",
"version": "1.0.4"
},
{
"name": "language-css",
"version": "0.42.11"
},
{
"name": "language-elm",
"version": "1.5.0"
},
{
"name": "language-gfm",
"version": "0.90.5"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-glsl",
"version": "2.0.4"
},
{
"name": "language-go",
"version": "0.45.4"
},
{
"name": "language-haskell",
"version": "1.17.8"
},
{
"name": "language-haskell-scoped",
"version": "0.1.1"
},
{
"name": "language-html",
"version": "0.50.1"
},
{
"name": "language-hyperlink",
"version": "0.16.3"
},
{
"name": "language-java",
"version": "0.30.0"
},
{
"name": "language-javascript",
"version": "0.128.8"
},
{
"name": "language-json",
"version": "0.19.2"
},
{
"name": "language-latex",
"version": "1.1.1"
},
{
"name": "language-less",
"version": "0.34.2"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.5"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-pgsql",
"version": "0.2.3"
},
{
"name": "language-php",
"version": "0.44.0"
},
{
"name": "language-powershell",
"version": "4.0.1"
},
{
"name": "language-prolog",
"version": "0.11.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-purescript",
"version": "0.8.3"
},
{
"name": "language-python",
"version": "0.50.1"
},
{
"name": "language-ruby",
"version": "0.71.4"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-sass",
"version": "0.62.0"
},
{
"name": "language-shakespeare",
"version": "0.2.2"
},
{
"name": "language-shellscript",
"version": "0.26.6"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.10"
},
{
"name": "language-text",
"version": "0.7.4"
},
{
"name": "language-todo",
"version": "0.29.4"
},
{
"name": "language-toml",
"version": "0.18.2"
},
{
"name": "language-typescript",
"version": "0.3.4"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.32.0"
},
{
"name": "latexer",
"version": "0.3.0"
},
{
"name": "line-ending-selector",
"version": "0.7.7"
},
{
"name": "link",
"version": "0.31.4"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-clang",
"version": "4.1.2"
},
{
"name": "linter-elm-make",
"version": "0.28.5"
},
{
"name": "linter-ui-default",
"version": "1.7.1"
},
{
"name": "linter-write-good",
"version": "0.9.0"
},
{
"name": "markdown-preview",
"version": "0.159.20"
},
{
"name": "metrics",
"version": "1.2.8"
},
{
"name": "minimap-find-and-replace",
"version": "4.5.2"
},
{
"name": "minimap-plus",
"version": "4.29.2"
},
{
"name": "nord-atom-syntax",
"version": "0.9.1",
"theme": "syntax"
},
{
"name": "nord-atom-ui",
"version": "0.11.0",
"theme": "ui"
},
{
"name": "notifications",
"version": "0.70.5"
},
{
"name": "one-dark-syntax",
"version": "1.8.3",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.12.3",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.3",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.12.3",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "project-plus",
"version": "1.0.0"
},
{
"name": "remote-sync",
"version": "4.1.8"
},
{
"name": "settings-view",
"version": "0.255.0"
},
{
"name": "snippets",
"version": "1.3.3"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.5",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.5",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.73.5"
},
{
"name": "status-bar",
"version": "1.8.15"
},
{
"name": "styleguide",
"version": "0.49.11"
},
{
"name": "swap-selection",
"version": "0.4.0"
},
{
"name": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "0.8.6"
},
{
"name": "tabs",
"version": "0.109.2"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "todo-show",
"version": "2.3.0"
},
{
"name": "tree-view",
"version": "0.222.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "welcome",
"version": "0.36.6"
},
{
"name": "whitespace",
"version": "0.37.6"
},
{
"name": "wrap-guide",
"version": "0.40.3"
},
{
"name": "zentabs",
"version": "0.8.9"
}
]
{
"advanced-open-file": {
"fuzzyMatch": true
},
"atom-ide-ui": {
"atom-ide-diagnostics-ui": {},
"use": {}
},
"atom-material-ui": {
"colors": {
"abaseColor": "#f8ed69",
"accentColor": "#7b86ff",
"genAccent": true,
"paintCursor": true
},
"fonts": {},
"tabs": {
"compactTabs": true,
"tintedTabBar": true
},
"treeView": {
"blendTabs": true,
"compactList": true
}
},
"atom-terminal": {
"MacWinRunDirectly": true,
"app": "hyper"
},
"atom-terminus": {
"app": "C:\\Program Files\\Git\\git-bash.exe"
},
"autocomplete-clang": {
"clangCommand": "C:/cygwin64/bin/clang-3.7.exe",
"includePaths": [
".",
"C:/CUDAINCLUDE"
]
},
"autocomplete-plus": {
"minimumWordLength": 1
},
"bracket-matcher": {
"autocompleteBrackets": false,
"autocompleteSmartQuotes": false
},
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"altgr",
"linter-gcc",
"vim-mode",
"linter",
"linter-ui-default",
"haskell-ghc-mod"
],
"packagesWithKeymapsDisabled": [
"git-control"
],
"telemetryConsent": "limited",
"themes": [
"city-lights-ui",
"city-lights-syntax"
],
"uriHandlerRegistration": "always"
},
"cursor-history": {
"flashColor": "success",
"flashOnLand": true
},
"editor": {
"autoIndentOnPaste": false,
"backUpBeforeSaving": true,
"fontFamily": "Source Code Pro",
"fontSize": 12,
"lineHeight": 1.3,
"preferredLineLength": 100,
"scrollPastEnd": true,
"tabLength": 4,
"zoomFontWhenCtrlScrolling": false
},
"elm-format": {
"binary": "C:/Users/darwi/AppData/Roaming/npm/elm-format.cmd"
},
"elmjutsu": {
"autocompleteMaxSuggestions": 10,
"cacheDirectory": "C:\\Users\\darwi\\AppData\\Local\\Temp\\elmjutsu6800V3QJ1K9m77HS",
"logDebugMessages": true
},
"exception-reporting": {
"userId": "c24b0b98-c0c4-6f68-83b8-07b6387128ad"
},
"gist": {
"token": "0c0003ed370c08c3c5f6df4dc287c3b7b400e59d"
},
"gist-it": {
"userToken": "5d32fe5effb9d6ba5c2724e1e0dda4045c02cf19"
},
"haskell-ghc-mod": {
"cabalSandbox": false,
"debug": true
},
"haskell-tools": {
"daemon-path": "C:\\Users\\darwi\\AppData\\Roaming\\local\\bin\\ht-daemon.exe",
"watch-path": ""
},
"ide-haskell": {
"onCursorMove": "Show Tooltip",
"stylishHaskellArguments": [
"--style johan-tibell"
],
"stylishHaskellPath": "hindent"
},
"ide-haskell-hasktags": {
"hasktagsPath": "hasktags"
},
"ide-haskell-hie": {
"hieLoggingPath": "C:/Users/darwi/hie.log",
"isDebug": true
},
"ide-purescript": {
"enableBuild": false,
"pscIdeExe": "psc-ide",
"pscIdeServerExe": "psc-ide-server"
},
"keyboard-localization": {
"useKeyboardLayout": "sl_SL"
},
"language-elm": {
"autocompleteEnabled": false
},
"linter": {},
"linter-clang": {
"clangIncludePaths": [
"C:\\Users\\Luka\\OneDrive\\Faks\\PPR",
"C:/CUDAINCLUDE"
],
"executablePath": "C:\\cygwin64\\bin\\clang-3.7.exe"
},
"linter-gcc": {
"execPath": "nvcc",
"gccDebug": true,
"gccDefaultCFlags": "-c",
"gccDefaultCppFlags": "-c",
"gccIncludePaths": " ., C:/CUDAINCLUDE",
"gccLintOnTheFly": true
},
"linter-ui-default": {
"panelHeight": 253
},
"markdown-pdf": {
"border": "20mm",
"orientation": "landscape"
},
"minimap": {
"absoluteMode": true,
"plugins": {
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0
}
},
"package-generator": {
"packageSyntax": "coffeescript"
},
"platformio-ide-terminal": {
"core": {
"shell": "fish",
"shellArguments": "--login"
}
},
"spell-check": {
"locales": [
"hr-HR"
]
},
"sync-settings": {},
"terminal-plus": {
"core": {
"shell": "fish",
"shellArguments": "--login"
},
"toggles": {
"autoClose": true
}
},
"tree-view": {
"hideVcsIgnoredFiles": true,
"squashDirectoryNames": 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
'.source.haskell':
'Import Set':
'prefix': 'import Data.Set'
'body': '''
import Data.Set (Set)
import qualified Data.Set as Set
'''
'Import Map':
'prefix': 'import Data.Map'
'body': '''
import Data.Map (Map)
import qualified Data.Map as Map
'''
/*
* 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)
*/
atom-text-editor .vertical-scrollbar,
atom-text-editor::shadow .vertical-scrollbar {
opacity: 0;
width: 0;
}
atom-text-editor .line {
font-weight: 300;
}
html, body, .file, .directory, .tree-view, .tab-bar, .tab {
font-family: "Segoe UI" !important;
}
ide-haskell-item-description {
font-family: "Source Code Pro" !important;
}
atom-text-editor::shadow {
.known-identifier.haskell {
// -webkit-filter: drop-shadow(2px 2px rgba(0, 0, 0, 0.4)); //disable default style
-webkit-filter: brightness(200%);
}
.entity.tag.haskell {
color: lighten(orange, 20%);
}
.known-identifier.tag.haskell { // Type constructors
color: lighten(yellow, 20%); // set your preferred color here
}
.known-identifier.type.haskell {
color: turquoise; // set your preferred color here
}
.prelude.haskell { // to disable built-in Prelude highlighting
color: inherit !important;
}
.comment {
color: lightgrey;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment