Skip to content

Instantly share code, notes, and snippets.

@DevNebulae
Last active April 4, 2017 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevNebulae/368d2a5b24a4b039e44c977517d88b4a to your computer and use it in GitHub Desktop.
Save DevNebulae/368d2a5b24a4b039e44c977517d88b4a to your computer and use it in GitHub Desktop.
Proton(-mode) configuration
{
;; This is your main proton configuration file
;; While using proton, all atom related configuration has to go inside here
;; Everything that is not set up through this file will get wiped on start
;; We gave you some cool defaults below but if you don't like it, feel free to change :)
;; Layers you wish to have active
;; To get a list of all available layers, check github.com/dvcrn/proton/tree/master/src/cljs/proton/layers
:layers [
;; -----------------------------------
;; core layer. Don't remove.
;; -----------------------------------
:core
;; -----------------------------------
;; tools
;; Get more at github.com/dvcrn/proton/tree/master/src/cljs/proton/layers/tools
;; -----------------------------------
:tools/git
:tools/linter
:tools/minimap
;; -----------------------------------
;; Languages
;; Get more at github.com/dvcrn/proton/tree/master/src/cljs/proton/layers/lang
;; -----------------------------------
:lang/clojure
:lang/csharp
:lang/css
:lang/elm
:lang/haskell
:lang/html
:lang/javascript
:lang/json
:lang/latex
:lang/markdown
:lang/sass
;; -----------------------------------
;; Frameworks
;; Get more at github.com/dvcrn/proton/tree/master/src/proton/layers/frameworks
;; -----------------------------------
;; :frameworks/django
;; -----------------------------------
;; etc
;; Get more at github.com/dvcrn/proton/tree/master/src/cljs/proton/layers/fun
;; -----------------------------------
;; :fun/power_mode
]
;; Packages that are not part of a layer. List them here as keyword
;; All packages will be ensured to be installed. Stuff that is not listed here
;; Will get uninstalled so choose wisely!
:additional-packages
[
:atom-material-syntax-dark
:busy-signal
:editorconfig
:ide-purescript
:intentions
:language-ethereum
:language-purescript
:linter-chktex
:linter-eslint
:linter-stylelint
:linter-ui-default
:tabs-to-spaces
]
;; Packages that you want to disable.
;; Note that packages will be removed except bundled packages.
;; Bundled packages will be disabled instead.
;; Use this configuration instead of atom's `core.disabledPackages`
:disabled-packages [
:about
:autocomplete-sass
:fonts
:json-schema
:linter-bootlint
:linter-jshint
:linter-sass-lint
:markdown-preview
:welcome
:whitespace
]
;; Proton takes over your atom configuration. All settings that are not listed here will get wiped
;; Configurations are denoted as 2 element vector consisting of k/v
;; sub-vectors inside v will get treated like javascript arrays
:configuration [
;; atom material ui configuration
["atom-material-ui.colors.genAccent" true]
["atom-material-ui.tabs.tintedTabBar" true]
["atom-material-ui.treeView.blendTabs" true]
["atom-material-ui.ui.panelContrast" true]
["atom-material-ui.ui.panelShadows" true]
;; appearance
["editor.fontFamily" "Iosevka"]
["editor.fontSize" 21]
["editor.scrollPastEnd" true]
["editor.showIndentGuide" true]
["editor.softWrap" true]
;; coding style
["editor.tabLength" 4]
;; welcome message
["welcome.showOnStartup" false]
;; the current default theme
["core.themes" ["atom-material-ui" "atom-material-syntax"]]
;; proton configuration
["proton.core.showTabBar" true]
["proton.core.relativeLineNumbers" false]
;; prefer classic vim mode over vim-mode-plus? Change this to :vim-mode
["proton.core.inputProvider" :vim-mode-plus]
]
;; Don't like a keybinding or want to add something yourself? Do it here
;; The following example adds a category `foo-category` under <SPC>z
;; and adds a action under `y` with the title `execute hello`.
;; Upon executing, proton will dispatch the action `hello` on the current view
;;
;; :keybindings {:z {:category "foo-category"
;; :y {:title "execute hello"
;; :action "hello"}}}
:keybindings {}
;; Want some custom behavior inside a certain window?
;; Add your own nifty things here!
:keymaps [{
:selector "atom-text-editor.vim-mode-plus.normal-mode, atom-text-editor.vim-mode-plus.visual-mode"
:keymap [
["[ e" "editor:move-line-up"]
["] e" "editor:move-line-down"]
["[ space" "editor:newline-above"]
["] space" "editor:newline-below"]]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment