Skip to content

Instantly share code, notes, and snippets.

@Cortys
Last active July 17, 2021 21:10
Show Gist options
  • Save Cortys/47ec0fe8970c4975148c to your computer and use it in GitHub Desktop.
Save Cortys/47ec0fe8970c4975148c to your computer and use it in GitHub Desktop.
Atom Settings Backup by https://atom.io/packages/sync-settings
;; experimental versions of my init.coffee functions
(defn- wrap-in-tap [code]
(str "(let [value " code
" rr (try (resolve 'requiring-resolve) (catch Throwable _))]"
" (if-let [rs (try (rr 'cognitect.rebl/submit) (catch Throwable _))]"
" (rs '" code " value)"
" (tap> value))"
" value)"))
(defn tap-top-block []
(p/let [block (editor/get-top-block)]
(when (seq (:text block))
(-> block
(update :text wrap-in-tap)
(editor/eval-and-render)))))
(defn tap-block []
(p/let [block (editor/get-block)]
(when (seq (:text block))
(-> block
(update :text wrap-in-tap)
(editor/eval-and-render)))))
(defn tap-selection []
(p/let [block (editor/get-selection)]
(when (seq (:text block))
(-> block
(update :text wrap-in-tap)
(editor/eval-and-render)))))
(defn tap-def-var []
(p/let [block (editor/get-selection)]
(when (seq (:text block))
(-> block
(update :text
#(str "(def " % ")"))
(update :text wrap-in-tap)
(editor/eval-and-render)))))
(defn tap-var []
(p/let [block (editor/get-var)]
(when (seq (:text block))
(-> block
(update :text #(str "#'" %))
(update :text wrap-in-tap)
(editor/eval-and-render)))))
(defn tap-ns []
(p/let [block (editor/get-namespace)
here (editor/get-selection)]
(when (seq (:text block))
(-> block
(update :text #(str "(find-ns '" % ")"))
(update :text wrap-in-tap)
(assoc :range (:range here))
(editor/eval-and-render)))))
(defn tap-remove-ns []
(p/let [block (editor/get-namespace)
here (editor/get-selection)]
(when (seq (:text block))
(editor/run-callback
:notify
{:type :info :title "Removing..." :message (:text block)})
(-> block
(update :text #(str "(remove-ns '" % ")"))
(update :text wrap-in-tap)
(assoc :range (:range here))
(editor/eval-and-render)))))
(defn tap-reload-all-ns []
(p/let [block (editor/get-namespace)
here (editor/get-selection)]
(when (seq (:text block))
(editor/run-callback
:notify
{:type :info :title "Reloading all..." :message (:text block)})
(p/let [res (editor/eval-and-render
(-> block
(update :text #(str "(require '" % " :reload-all)"))
(update :text wrap-in-tap)
(assoc :range (:range here))))]
(editor/run-callback
:notify
{:type (if (:error res) :warn :info)
:title (if (:error res)
"Reload failed for..."
"Reload succeeded!")
:message (:text block)})))))
(defn- format-test-result [{:keys [test pass fail error]}]
(str "Ran " test " test"
(when-not (= 1 test) "s")
(when-not (zero? pass)
(str ", " pass " assertion"
(when-not (= 1 pass) "s")
" passed"))
(when-not (zero? fail)
(str ", " fail " failed"))
(when-not (zero? error)
(str ", " error " errored"))
"."))
(defn tap-run-side-tests []
(p/let [block (editor/get-namespace)
here (editor/get-selection)]
(when (seq (:text block))
(p/let [res (editor/eval-and-render
(-> block
(update :text (fn [s] (str "
(some #(try
(let [nt (symbol (str \"" s "\" \"-\" %))]
(require nt)
(clojure.test/run-tests nt))
(catch Throwable _))
[\"test\" \"expectations\"])")))
(update :text wrap-in-tap)
(assoc :range (:range here))))]
(editor/run-callback
:notify
{:type (if (:error res) :warn :info)
:title (if (:error res)
"Failed to run tests for..."
"Tests completed!")
:message (if (:error res) (:text block) (format-test-result (:result res)))})))))
(defn tap-doc-var []
(p/let [block (editor/get-var)]
(when (seq (:text block))
(-> block
(update :text
#(str
"(java.net.URL."
" (str \"http://clojuredocs.org/\""
" (-> (str (symbol #'" % "))"
;; clean up ? ! &
" (clojure.string/replace \"?\" \"%3f\")"
" (clojure.string/replace \"!\" \"%21\")"
" (clojure.string/replace \"&\" \"%26\")"
")))"))
(update :text wrap-in-tap)
(editor/eval-and-render)))))
(defn tap-javadoc []
(p/let [block (editor/get-selection)
block (if (< 1 (count (:text block))) block (editor/get-var))]
(when (seq (:text block))
(-> block
(update :text
#(str
"(let [c-o-o " %
" ^Class c (if (instance? Class c-o-o) c-o-o (class c-o-o))] "
" (java.net.URL. "
" (clojure.string/replace"
" ((requiring-resolve 'clojure.java.javadoc/javadoc-url)"
" (.getName c))"
;; strip inner class
" #\"\\$[a-zA-Z0-9_]+\" \"\""
")))"))
(update :text wrap-in-tap)
(editor/eval-and-render)))))
# Applies the function f and then reverts the cursor positions back to their original location
maintainingCursorPosition = (f)->
editor = atom.workspace.getActiveTextEditor()
currSelected = editor.getSelectedBufferRanges()
f()
editor.setSelectedScreenRanges(currSelected)
# Cuts the current block of lisp code.
atom.commands.add 'atom-text-editor', 'clj-custom:cut-sexp', ->
editor = atom.workspace.getActiveTextEditor()
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:up-sexp')
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:expand-selection')
atom.commands.dispatch(atom.views.getView(editor), 'core:cut')
# Copies the current block of lisp code.
atom.commands.add 'atom-text-editor', 'clj-custom:copy-sexp', ->
maintainingCursorPosition ->
editor = atom.workspace.getActiveTextEditor()
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:up-sexp')
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:expand-selection')
atom.commands.dispatch(atom.views.getView(editor), 'core:copy')
# Pastes over current block of lisp code.
atom.commands.add 'atom-text-editor', 'clj-custom:paste-sexp', ->
editor = atom.workspace.getActiveTextEditor()
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:up-sexp')
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:expand-selection')
atom.commands.dispatch(atom.views.getView(editor), 'core:paste')
# Deletes the current block of lisp code.
atom.commands.add 'atom-text-editor', 'clj-custom:delete-sexp', ->
editor = atom.workspace.getActiveTextEditor()
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:up-sexp')
atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:expand-selection')
atom.commands.dispatch(atom.views.getView(editor), 'core:delete')
# Indents the top level sexp.
# atom.commands.add 'atom-text-editor', 'clj-custom:indent-top-sexp', ->
# maintainingCursorPosition ->
# editor = atom.workspace.getActiveTextEditor()
# range = protoRepl.EditorUtils.getCursorInClojureTopBlockRange(editor)
# # Work around a lisp paredit bug where it can't indent a range if selected from the very beginning of the file
# start = range.start
# if start.column == 0 && start.row == 0
# start.column = 1
#
# editor.setSelectedScreenRange(range)
# atom.commands.dispatch(atom.views.getView(editor), 'lisp-paredit:indent')
'body':
'ctrl-tab ^ctrl': 'unset!'
'ctrl-tab': 'pane:show-next-item'
'ctrl-shift-tab ^ctrl': 'unset!'
'ctrl-shift-tab': 'pane:show-previous-item'
'atom-text-editor':
'alt-up': 'expand-region:expand'
'alt-down': 'expand-region:shrink'
'atom-workspace':
'ctrl-n': 'tree-view:add-file'
'ctrl-k ctrl-k': 'change-case:kebab'
# Clojure:
'atom-text-editor[data-grammar~="clojure"].autocomplete-active':
'enter': 'autocomplete-plus:confirm'
'atom-text-editor[data-grammar~="clojure"]':
'ctrl-shift-up': 'lisp-paredit:up-sexp'
'ctrl-shift-down': 'lisp-paredit:down-sexp'
'alt-up': 'lisp-paredit:expand-selection'
'alt-down': 'lisp-paredit:contract-selection'
'enter': 'lisp-paredit:newline'
'ctrl-, b': 'chlorine:tap-block'
'ctrl-, B': 'chlorine:tap-top-block'
'ctrl-, c': 'chlorine:break-evaluation'
'ctrl-, d': 'chlorine:doc-for-var'
'ctrl-, D': 'chlorine:tap-def-var'
'ctrl-, e': 'chlorine:disconnect'
'ctrl-, f': 'chlorine:load-file'
'ctrl-, j': 'chlorine:tap-javadoc'
'ctrl-, k': 'chlorine:clear-console'
'ctrl-, K': 'chlorine:clear-inline-results'
'ctrl-, n': 'chlorine:tap-ns'
'ctrl-, R': 'chlorine:tap-remove-ns'
'ctrl-, r': 'chlorine:tap-reload-all-ns'
'ctrl-, s': 'chlorine:tap-selection'
'ctrl-, S': 'chlorine:source-for-var'
'ctrl-, t': 'chlorine:run-test-for-var'
'ctrl-, v': 'chlorine:tap-var'
'ctrl-, x': 'chlorine:run-tests-in-ns'
'ctrl-, X': 'chlorine:tap-run-side-tests'
'ctrl-, y': 'chlorine:connect-socket-repl'
'ctrl-, ?': 'chlorine:tap-doc-var'
'ctrl-, .': 'chlorine:go-to-var-definition'
'ink-console atom-text-editor[data-grammar~="clojure"]':
'enter': 'editor:newline'
# Mac:
'.platform-darwin atom-text-editor':
'ctrl-space' : 'autocomplete-plus:activate'
'cmd-i' : 'atom-beautify:beautify-editor'
'cmd-e' : 'script:run'
'cmd-l' : 'go-to-line:toggle'
'.platform-darwin atom-text-editor[data-grammar~=js]':
'cmd-i': 'linter-eslint:fix-file'
## Clojure:
'.platform-darwin atom-text-editor[data-grammar~="clojure"]':
## Indent the current selection
'cmd-i': 'lisp-paredit:indent'
## Helpers for cutting, copying, pasting, deleting, and indenting a Clojure code
'cmd-shift-x': 'clj-custom:cut-sexp'
'cmd-shift-c': 'clj-custom:copy-sexp'
'cmd-shift-v': 'clj-custom:paste-sexp'
'cmd-shift-d': 'clj-custom:delete-sexp'
'cmd-shift-i': 'clj-custom:indent-top-sexp'
# Linux and Windows:
':not(.platform-darwin) atom-text-editor':
'ctrl-shift-e': 'script:run'
'ctrl-shift-r': 'hydrogen:restart-kernel'
## Clojure:
':not(.platform-darwin) atom-text-editor[data-grammar~="clojure"]':
## Indent the current selection
'ctrl-i': 'lisp-paredit:indent'
## Helpers for cutting, copying, pasting, deleting, and indenting a Clojure code
'ctrl-shift-x': 'clj-custom:cut-sexp'
'ctrl-shift-c': 'clj-custom:copy-sexp'
'ctrl-shift-v': 'clj-custom:paste-sexp'
'ctrl-shift-i': 'clj-custom:indent-top-sexp'
{
"2-dark-syntax": {
"version": "1.1.0",
"theme": "syntax"
},
"atom-beautify": {
"version": "0.33.4"
},
"atom-dark-clockwork-ui": {
"version": "0.27.1",
"theme": "ui"
},
"atom-ide-base": {
"version": "3.4.0"
},
"atom-ide-code-format": {
"version": "1.0.2"
},
"atom-ide-datatip": {
"version": "0.25.0"
},
"atom-ide-debugger": {
"version": "0.0.3"
},
"atom-ide-definitions": {
"version": "0.4.1"
},
"atom-ide-hyperclick": {
"version": "1.0.11"
},
"atom-ide-markdown-service": {
"version": "2.1.0"
},
"atom-ide-outline": {
"version": "3.1.0"
},
"atom-ide-signature-help": {
"version": "0.16.0"
},
"atom-ide-ui": {
"version": "0.13.0"
},
"atom-live-server": {
"version": "2.3.0"
},
"atom-material-syntax": {
"version": "1.0.8",
"theme": "syntax"
},
"atom-material-ui": {
"version": "2.1.3",
"theme": "ui"
},
"atom-terminal": {
"version": "0.8.0"
},
"atom-ternjs": {
"version": "0.20.0"
},
"autocomplete-modules": {
"version": "2.3.0"
},
"autocomplete-paths": {
"version": "2.15.2"
},
"autocomplete-php": {
"version": "0.3.7"
},
"batman-syntax": {
"version": "1.1.0",
"theme": "syntax"
},
"build": {
"version": "0.70.0"
},
"build-gradle": {
"version": "0.6.0"
},
"build-gulp": {
"version": "0.11.0"
},
"build-make": {
"version": "0.13.0"
},
"busy": {
"version": "0.7.0"
},
"busy-signal": {
"version": "2.0.1"
},
"change-case": {
"version": "0.6.5"
},
"chlorine": {
"version": "0.12.0"
},
"city-lights-syntax": {
"version": "1.1.8",
"theme": "syntax"
},
"city-lights-ui": {
"version": "1.5.3",
"theme": "ui"
},
"color-picker": {
"version": "2.3.0"
},
"docblockr": {
"version": "0.13.7"
},
"double-tag": {
"version": "1.7.0"
},
"editorconfig": {
"version": "2.6.1"
},
"expand-region": {
"version": "0.5.0"
},
"file-icons": {
"version": "2.1.47"
},
"file-types": {
"version": "1.0.1"
},
"fizzy": {
"version": "0.21.0",
"theme": "syntax"
},
"genesis-syntax": {
"version": "1.0.9",
"theme": "syntax"
},
"genesis-ui": {
"version": "0.5.0",
"theme": "ui"
},
"gist-it": {
"version": "0.9.2"
},
"git-history": {
"version": "3.3.0"
},
"git-time-machine": {
"version": "2.1.0"
},
"highlight-selected": {
"version": "0.17.0"
},
"Hydrogen": {
"version": "2.16.3"
},
"hydrogen-launcher": {
"version": "1.2.2"
},
"ide-gopls": {
"version": "0.2.2"
},
"ide-java": {
"version": "0.9.1"
},
"ide-python": {
"version": "1.9.3"
},
"ide-typescript": {
"version": "0.9.2"
},
"intentions": {
"version": "2.1.1"
},
"isotope-ui": {
"version": "2.8.5",
"theme": "ui"
},
"keyboard-localization": {
"version": "1.5.0"
},
"language-cmake": {
"version": "1.2.0"
},
"language-cypher": {
"version": "0.5.0"
},
"language-docker": {
"version": "1.1.8"
},
"language-ejs": {
"version": "0.4.0"
},
"language-gitignore": {
"version": "0.3.0"
},
"language-gradle": {
"version": "0.1.0"
},
"language-groovy": {
"version": "0.7.0"
},
"language-latex": {
"version": "1.2.0"
},
"language-lua": {
"version": "0.9.11"
},
"language-mips": {
"version": "0.3.0"
},
"language-prolog": {
"version": "0.11.0"
},
"language-pug": {
"version": "0.0.22"
},
"language-scala": {
"version": "1.1.10"
},
"language-sml": {
"version": "0.7.0"
},
"latex": {
"version": "0.50.2"
},
"latex-completions": {
"version": "0.3.6"
},
"latexer": {
"version": "0.3.0"
},
"less-than-slash": {
"version": "0.20.0"
},
"linter": {
"version": "3.4.0"
},
"linter-chktex": {
"version": "1.4.0"
},
"linter-clang": {
"version": "4.1.2"
},
"linter-clojure": {
"version": "1.2.0"
},
"linter-eastwood": {
"version": "1.1.0"
},
"linter-eslint": {
"version": "8.6.6"
},
"linter-joker": {
"version": "4.1.0"
},
"linter-jscs": {
"version": "4.2.4"
},
"linter-jshint": {
"version": "3.1.19"
},
"linter-jsonlint": {
"version": "1.4.0"
},
"linter-kibit": {
"version": "0.1.2"
},
"linter-kondo": {
"version": "1.2.0"
},
"linter-lein": {
"version": "0.1.1"
},
"linter-lua": {
"version": "2.0.0"
},
"linter-markdown": {
"version": "5.2.11"
},
"linter-php": {
"version": "1.6.1"
},
"linter-ui-default": {
"version": "3.4.1"
},
"lisp-paredit": {
"version": "0.8.0"
},
"markdown-pdf": {
"version": "2.3.3"
},
"markdown-preview-enhanced": {
"version": "0.18.12"
},
"markdown-writer": {
"version": "2.11.11"
},
"minimap": {
"version": "4.40.0"
},
"minimap-find-and-replace": {
"version": "5.0.8"
},
"minimap-git-diff": {
"version": "4.3.6"
},
"minimap-highlight-selected": {
"version": "4.6.5"
},
"minimap-linter": {
"version": "2.2.2"
},
"monokai": {
"version": "0.28.0",
"theme": "syntax"
},
"neutron-syntax": {
"version": "0.7.0",
"theme": "syntax"
},
"neutron-ui": {
"version": "0.4.0",
"theme": "ui"
},
"nix": {
"version": "2.1.0"
},
"nord-atom-syntax": {
"version": "0.10.0",
"theme": "syntax"
},
"nord-atom-ui": {
"version": "0.12.0",
"theme": "ui"
},
"northem-dark-atom-ui": {
"version": "2.1.0",
"theme": "ui"
},
"nucleus-dark-ui": {
"version": "0.12.3",
"theme": "ui"
},
"one-dark-dim-syntax": {
"version": "0.1.0",
"theme": "syntax"
},
"pacific-dark": {
"version": "0.5.0",
"theme": "syntax"
},
"parinfer": {
"version": "1.24.1"
},
"pdf-view": {
"version": "0.73.0"
},
"pigments": {
"version": "0.40.6"
},
"predawn-ui": {
"version": "1.0.7",
"theme": "ui"
},
"prettier-atom": {
"version": "0.60.1"
},
"project-manager": {
"version": "3.3.8"
},
"project-plus": {
"version": "1.0.0"
},
"proto-repl": {
"version": "1.4.24"
},
"proto-repl-charts": {
"version": "0.4.1"
},
"proto-repl-sayid": {
"version": "0.1.4"
},
"quantum-ui": {
"version": "0.3.0",
"theme": "ui"
},
"rainbow-delimiters": {
"version": "2.1.2"
},
"remote-ftp": {
"version": "2.2.4"
},
"remote-sync": {
"version": "4.1.8"
},
"scope-inspector": {
"version": "1.0.1"
},
"script": {
"version": "3.32.2"
},
"seti-syntax": {
"version": "1.2.0",
"theme": "syntax"
},
"seti-ui": {
"version": "1.11.0",
"theme": "ui"
},
"sort-lines": {
"version": "0.19.0"
},
"split-diff": {
"version": "1.6.1"
},
"spring-boot": {
"version": "1.8.0"
},
"Stylus": {
"version": "3.2.0"
},
"Sublime-Style-Column-Selection": {
"version": "1.7.5"
},
"svg-preview": {
"version": "0.14.0"
},
"symbols-tree-view": {
"version": "0.14.0"
},
"sync-settings": {
"version": "5.2.13"
},
"tablr": {
"version": "1.8.3"
},
"teletype": {
"version": "0.13.4"
},
"tree-view-open-files": {
"version": "0.3.0"
},
"unity-dark-ui": {
"version": "2.0.9",
"theme": "ui"
},
"wordcount": {
"version": "3.2.0"
},
"xers-syntax": {
"version": "2.0.1",
"theme": "syntax"
},
"xers-ui": {
"version": "2.0.4",
"theme": "ui"
}
}
{
"*": {
"Hydrogen": {
"gateways": "[{\n \"name\": \"Local 8888\",\n \"options\": {\n \"baseUrl\": \"http://127.0.0.1:8888\",\n \"token\": \"0471c01ba7682850ad2d034ba04d7b42ad19505e156f7ed5\"\n }\n}, {\n \"name\": \"Local 8889\",\n \"options\": {\n \"baseUrl\": \"http://127.0.0.1:8889\",\n \"token\": \"0471c01ba7682850ad2d034ba04d7b42ad19505e156f7ed5\"\n }\n}]",
"outputAreaDefault": true,
"outputAreaDock": true,
"startDir": "projectDirOfFile",
"wrapOutput": true
},
"Remote-FTP": {
"autoUploadOnSave": false
},
"Sublime-Style-Column-Selection": {},
"atom-beautify": {
"c": {
"configPath": "/Users/admin/.uncrustify/config.cfg"
},
"clj": {},
"cpp": {
"configPath": "/Users/admin/.uncrustify/config.cfg"
},
"general": {
"_analyticsUserId": "885c1238-e292-4f1f-a492-7fb65fd22a2d"
},
"java": {
"configPath": "/Users/admin/.uncrustify/config.cfg"
},
"js": {
"brace_style": "end-expand",
"default_beautifier": "ESLint Fixer",
"end_with_newline": true,
"max_preserve_newlines": 2,
"space_before_conditional": false
},
"json": {
"end_with_newline": true
}
},
"atom-html-preview": {
"triggerOnSave": true
},
"atom-ide-code-format": {
"formatOnSave": false
},
"atom-ide-outline": {
"initialDisplay": false
},
"atom-ide-ui": {
"atom-ide-diagnostics-ui": {
"showDirectoryColumn": true
},
"atom-ide-terminal": {
"cursorBlink": true
},
"use": {
"atom-ide-busy-signal": "never"
}
},
"atom-material-ui": {
"colors": {
"abaseColor": "#1b1f25",
"accentColor": "#778292"
},
"fonts": {
"fontSize": 15
},
"tabs": {
"compactTabs": true,
"tintedTabBar": true
},
"treeView": {
"compactList": true
},
"ui": {
"animations": false,
"panelContrast": true
}
},
"atom-terminal": {
"MacWinRunDirectly": true,
"app": "iTerm.app",
"surpressDirectoryArgument": false
},
"atom-terminal-panel": {
"enableConsoleStartupInfo": false
},
"atom-ternjs": {
"caseInsensitive": false,
"guess": false,
"lint": true,
"useSnippets": true,
"useSnippetsAndFunction": true
},
"autoclose-html": {
"makeNeverCloseElementsSelfClosing": true
},
"autocomplete-plus": {
"backspaceTriggersAutocomplete": true,
"enableBuiltinProvider": false
},
"autosave": {},
"bracket-matcher": {
"highlightMatchingLineNumber": true
},
"build": {
"overrideThemeColors": false,
"saveOnBuild": true
},
"chlorine": {
"experimental-features": true,
"refresh-mode": "full"
},
"city-lights-ui": {},
"color-picker": {
"automaticReplace": true,
"preferredFormat": "HEX",
"randomColor": false
},
"core": {
"audioBeep": false,
"debugLSP": true,
"disabledPackages": [
"turbo-javascript",
"autoflow",
"wrap-guide",
"autoclose-html",
"highlight-line",
"scope-inspector",
"welcome",
"markdown-scroll-sync",
"symbols-tree-view",
"tree-view-open-files",
"linter-jscs",
"keyboard-localization",
"project-plus",
"linter-clojure",
"linter-lein",
"whitespace",
"markdown-preview",
"build",
"build-gradle",
"build-gulp",
"build-make",
"atom-terminal",
"remote-sync",
"atom-ternjs",
"autocomplete-paths",
"busy",
"script",
"linter-joker",
"proto-repl-charts",
"proto-repl-sayid",
"linter-eastwood",
"linter-kibit",
"atom-ide-ui",
"less-than-slash",
"proto-repl",
"remote-ftp",
"gist-it"
],
"excludeVcsIgnoredPaths": false,
"packagesWithKeymapsDisabled": [
"script",
"node-debugger",
"lisp-paredit"
],
"telemetryConsent": "limited"
},
"docblockr": {
"align_tags": "no"
},
"editor": {
"backUpBeforeSaving": true,
"fontFamily": "\"Fira Code\", Menlo, \"Meslo LG M\"",
"lineHeight": 1.6,
"scrollPastEnd": true,
"showCursorOnSelection": false,
"showIndentGuide": true,
"softTabs": false,
"softWrap": true,
"softWrapHangingIndent": 2,
"tabLength": 4
},
"exception-reporting": {
"userId": "5700d1c5-b29f-87eb-532d-8bbca1c35468"
},
"file-icons": {},
"file-types": {
"**/Dockerfile.*": "source.dockerfile",
"Dockerfile.*": "source.dockerfile"
},
"find-and-replace": {
"autocompleteSearches": true,
"enablePCRE2": true,
"useRipgrep": true
},
"genesis-ui": {
"distractionFree": {
"hideBottom": false,
"hideTabs": false
}
},
"gist-it": {
"newGistsDefaultToPrivate": true,
"userToken": "fc05de07827e7598b860d8fa38db7f91f634579c"
},
"grunt-runner": {
"gruntPaths": [
"/opt/local/bin/grunt"
]
},
"highlight-selected": {},
"ide-docker": {
"clientLogging": true
},
"ide-java": {
"server": {
"errors": {
"incompleteClasspath": {
"severity": "ignore"
}
}
},
"virtualMachine": {}
},
"ide-python": {
"pylsPlugins": {
"flake8": {},
"mccabe": {
"enabled": false,
"threshold": 20
},
"pycodestyle": {
"ignore": [
"E121",
"E123",
"E125",
"E126",
"E226",
"E24",
"E704",
"W503",
"E111",
"E302",
"W605",
"E731",
"E114"
]
},
"pydocstyle": {},
"pyls_mypy": {}
},
"python": "python3"
},
"isotope-ui": {
"compactLayout": false,
"customBackgroundColor": true,
"customBackgroundColorPicker": "#1e222a",
"lowContrastTooltip": true
},
"jscs-fixer": {
"defaultPreset": "airbnb",
"harmony": true
},
"latex": {
"buildOnSave": true,
"enableShellEscape": true,
"opener": "okular",
"outputDirectory": "build"
},
"linter-chktex": {
"showId": true
},
"linter-clang": {
"clangDefaultCppFlags": "-Wall -std=c++17"
},
"linter-clojure": {
"clojureExecutablePath": "/home/clemens/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar"
},
"linter-eslint": {
"advanced": {},
"autofix": {
"fixOnSave": true
},
"disableWhenNoEslintrcFileInPath": true,
"global": {}
},
"linter-joker": {},
"linter-jscs": {
"displayAs": "warning",
"esnext": true,
"harmony": true,
"onlyConfig": true
},
"linter-jshint": {
"disableWhenNoJshintrcFileInPath": true,
"jshintExecutablePath": "/usr/local/bin/jshint",
"lintInlineJavaScript": true
},
"linter-lein": {},
"linter-markdown": {
"presetConsistentWithoutConfig": false,
"presetRecommendedWithoutConfig": false
},
"linter-remark": {},
"linter-ui-default": {
"panelHeight": 189.1005859375,
"showProviderName": true
},
"lisp-paredit": {
"indentationForms": [
"try",
"catch",
"finally",
"/^let/",
"are",
"/^def/",
"fn",
"/cond[op]?/",
"/^if.*/",
"/.*\\/for/",
"for",
"for-all",
"/^when.*/",
"testing",
"doseq",
"dotimes",
"ns",
"routes",
"GET",
"POST",
"PUT",
"DELETE",
"extend-protocol",
"loop",
"do",
"case",
"with-bindings",
"checking",
"with-open",
"/run(-nc|-db)?\\*?/",
"fresh",
"/match[aeu]/",
"instanciate"
],
"strict": false
},
"markdown-preview-enhanced": {
"breakOnSingleNewLine": false,
"openPreviewPaneAutomatically": false,
"previewTheme": "one-dark.css"
},
"merge-conflicts": {
"gitPath": "/usr/bin/git"
},
"metrics": {
"userId": "ee2f7c34da9aa0f69678549f9fe667a482f8b032"
},
"minimap": {
"charHeight": 1,
"independentMinimapScroll": true,
"minimapScrollIndicator": false,
"plugins": {
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0,
"linter": true,
"linterDecorationsZIndex": 0
}
},
"minimap-plus": {
"charHeight": 1,
"displayPluginsControls": false
},
"nord-atom-ui": {
"darkerFormFocusEffect": true,
"tabSizing": false
},
"one-dark-ui": {
"fontSize": 11
},
"one-light-ui": {
"fontSize": 11
},
"parinfer": {
"file-extensions": [
".boot",
".cl",
".clj",
".cljc",
".cljs",
".edn",
".el",
".joker",
".lfe",
".lisp",
".lsp",
".rkt",
".scm"
],
"use-smart-mode?": true
},
"pdf-view": {
"fitToWidthOnOpen": true
},
"pigments": {
"mergeColorDuplicates": true,
"notifyReloads": false,
"sortPaletteColors": "by name"
},
"prettier-atom": {
"formatOnSaveOptions": {
"enabled": true,
"isDisabledIfNotInPackageJson": true
}
},
"project-manager": {
"alwaysOpenInSameWindow": true,
"environmentSpecificProjects": true,
"ignoreDirectories": "node_modules, vendor, .publish, Xcode",
"includeGitRepositories": true,
"showPath": false,
"sortBy": "group"
},
"project-plus": {
"autoDiscover": false
},
"proto-repl": {
"autoPrettyPrint": true,
"displayHelpText": false,
"refreshOnReplStart": false
},
"remote-ftp": {
"connector": {
"autoUploadOnSave": "only when connected"
},
"statusbar": {
"enable": true
},
"tree": {
"showProjectName": "remote"
}
},
"scope-inspector": {
"showSidebar": false,
"trackUsageMetrics": false,
"userId": "ee2f7c34da9aa0f69678549f9fe667a482f8b032"
},
"script": {
"cwdBehavior": "Project directory of the script",
"ignoreSelection": true,
"stopOnRerun": true
},
"seti-ui": {
"compactView": true,
"disableAnimations": true,
"themeColor": "Red"
},
"spell-check": {
"addKnownWords": true,
"grammars": [
"source.asciidoc",
"source.gfm",
"text.git-commit",
"text.plain",
"text.plain.null-grammar",
"text.tex.latex"
],
"knownWords": [
"inkrementelle",
"Vektorraum",
"Vektorraums",
"textueller",
"probabilistischen",
"Konfidenzwahrscheinlichkeiten",
"algorithmisch",
"hyperparameter",
"aquisition",
"accuracies",
"parameterization",
"textit{convolutional",
"convolutional",
"computable",
"interpretable",
"summand",
"choosable",
"subgraph",
"discriminative"
],
"locales": [
"de-DE",
"en-US"
]
},
"split-diff": {
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"syncHorizontalScroll": true
},
"spring-boot": {
"change-detection": {
"on": true
}
},
"status-bar": {},
"swackets": {
"colorParens": true,
"colorSquareBrackets": true
},
"symbols-tree-view": {
"autoHide": true,
"autoToggle": true,
"scrollAnimation": false
},
"sync-settings": {
"disallowedSettings": [
"core.projectHome",
"editor.fontSize"
],
"extraFiles": [
"chlorine-config.cljs"
],
"hiddenSettings": {},
"installLatestVersion": true,
"onlySyncCommunityPackages": true,
"quietUpdateCheck": true,
"removeObsoletePackages": true
},
"tablr": {
"csvEditor": {
"header": true
}
},
"tabs": {
"enableMruTabSwitching": false,
"enableVcsColoring": true,
"usePreviewTabs": true
},
"tool-bar": {
"iconSize": "16px",
"position": "Right"
},
"tree-view": {
"alwaysOpenExisting": true,
"autoReveal": true,
"hideIgnoredNames": true,
"showOnRightSide": false
},
"welcome": {
"showOnStartup": false
},
"wordcount": {
"goalBgColor": "#c42c2d",
"goalColor": "#44c42c",
"goalLineHeight": "10%",
"ignorecode": true,
"ignorecomments": true,
"showchars": false
}
},
".clojure.source": {
"bracket-matcher": {
"autocompleteCharacters": [
"()",
"[]",
"{}",
"\"\"",
"“”",
"‘’",
"«»",
"‹›"
]
},
"editor": {
"autoIndent": false,
"autoIndentOnPaste": false,
"nonWordCharacters": "()\"':,;~@#$%^&{}[]`",
"showIndentGuide": false,
"tabLength": 1
}
}
}
# 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.
#
'.source.js':
'Anonymous function':
'prefix': 'f',
'body': """function($1) {
$2
}$3"""
'Arrow function':
'prefix': 'a',
'body': """($1) => {
$2
}$3"""
'use strict':
'prefix': 'us',
'body': '"use strict";'
'require':
'prefix': 'req',
'body': 'require("$1")'
.tree-view-scroller {
overflow-x: hidden;
border-bottom: none !important;
}
.tree-view::before {
display: none;
}
.tab-bar {
box-shadow: none !important;
.tab {
border-color: transparent !important;
box-shadow: none !important;
// &::before {
// width: auto !important;
// bottom: auto;
// right: 1px;
// height: 2px;
// }
.close-icon {
transition-duration: 0.04s !important;
}
}
}
atom-pane-container atom-pane,
atom-panel.tool-panel,
.atom-dock-inner,
.atom-dock-toggle-button-inner,
.btn, .btn.btn-default,
linter-bottom-tab,
atom-text-editor[mini],
.form-control,
.package-card, .alert,
.config-menu {
border: none !important;
}
.alert .close {
text-shadow: none;
margin-top: 1px;
}
.settings-panel {
border-top: none !important;
}
.settings-view .breadcrumb {
border-bottom: none !important;
}
.tooltip {
transition-duration: 0.04s !important;
&.bottom .tooltip-arrow {
border-bottom-color: #181c21 !important;
}
&.left .tooltip-arrow {
border-left-color: #181c21 !important;
}
&.right .tooltip-arrow {
border-right-color: #181c21 !important;
}
&.top .tooltip-arrow {
border-top-color: #181c21 !important;
}
.tooltip-inner {
background-color: #181c21;
border-radius: 0;
}
}
atom-overlay {
pointer-events: none;
& > * {
pointer-events: all;
}
}
atom-ternjs-type {
pointer-events: none !important;
vertical-align: top;
top: 0.2em;
display: block;
span {
padding: 0;
}
}
atom-text-editor.editor .horizontal-scrollbar {
display: none;
}
.tool-bar {
border-top: none;
border-bottom: none;
}
.pdf-view .page-container:not(:last-child) {
margin-bottom: 1px;
}
linter-panel {
padding: 0 !important;
}
linter-message {
padding: 0 3px !important;
}
linter-bottom-tab {
top: 0 !important;
}
.rainbow-marker, .rainbow-marker > * {
pointer-events: none;
}
// .hydrogen .sidebar .multiline-container {
// height: 100%;
// }
//
// .hydrogen .history {
// overflow: hidden;
// }
//
.hydrogen .sidebar img {
object-fit: contain;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment