From 438a2ed58c4491c4919cf6f4f8c7659448891e9c Mon Sep 17 00:00:00 2001 From: saibotk Date: Thu, 6 Dec 2018 20:31:59 +0100 Subject: [PATCH] Add .atom folder and adjusted gitignore in .atom --- .atom/.gitignore | 10 ++++++++ .atom/config.cson | 45 +++++++++++++++++++++++++++++++++++ .atom/github.cson | 1 + .atom/init.coffee | 11 +++++++++ .atom/keymap.cson | 32 +++++++++++++++++++++++++ {atom => .atom}/packages.list | 0 .atom/snippets.cson | 21 ++++++++++++++++ .atom/styles.less | 32 +++++++++++++++++++++++++ setup.sh | 2 ++ 9 files changed, 154 insertions(+) create mode 100644 .atom/.gitignore create mode 100644 .atom/config.cson create mode 100644 .atom/github.cson create mode 100644 .atom/init.coffee create mode 100644 .atom/keymap.cson rename {atom => .atom}/packages.list (100%) create mode 100644 .atom/snippets.cson create mode 100644 .atom/styles.less diff --git a/.atom/.gitignore b/.atom/.gitignore new file mode 100644 index 0000000..5b88b6b --- /dev/null +++ b/.atom/.gitignore @@ -0,0 +1,10 @@ +blob-store +compile-cache +dev +storage +.apm +.node-gyp +.npm +packages +recovery +projects.cson diff --git a/.atom/config.cson b/.atom/config.cson new file mode 100644 index 0000000..81a57f6 --- /dev/null +++ b/.atom/config.cson @@ -0,0 +1,45 @@ +"*": + "activate-power-mode": + plugins: + playAudio: true + screenShake: true + "ansible-vault": + path: "/usr/bin/ansible-vault" + "atom-material-ui": + colors: + genAccent: true + tabs: + compactTabs: true + stretchedTabs: true + ui: + panelContrast: true + panelShadows: true + core: + disabledPackages: [ + "atom-bootstrap4" + ] + telemetryConsent: "no" + themes: [ + "atom-material-ui" + "atom-material-syntax-dark" + ] + editor: + fontSize: 15 + tabLength: 4 + tabType: "hard" + "exception-reporting": + userId: "164cfdfa-2140-4a5b-a2bd-e1d34eaa5c00" + minimap: + plugins: + "find-and-replace": true + "find-and-replaceDecorationsZIndex": 0 + "highlight-selected": true + "highlight-selectedDecorationsZIndex": 0 + pigments: true + pigmentsDecorationsZIndex: 0 + welcome: + showOnStartup: false +".blade.html.php.text": + editor: + commentEnd: " --}}" + commentStart: "{{-- " diff --git a/.atom/github.cson b/.atom/github.cson new file mode 100644 index 0000000..031c17c --- /dev/null +++ b/.atom/github.cson @@ -0,0 +1 @@ +# Store non-visible GitHub package state. diff --git a/.atom/init.coffee b/.atom/init.coffee new file mode 100644 index 0000000..09dab00 --- /dev/null +++ b/.atom/init.coffee @@ -0,0 +1,11 @@ +# 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()}" diff --git a/.atom/keymap.cson b/.atom/keymap.cson new file mode 100644 index 0000000..bfbadea --- /dev/null +++ b/.atom/keymap.cson @@ -0,0 +1,32 @@ +# 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: +# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-keybindings +# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/ +# +# If you're having trouble with your keybindings not working, try the +# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the +# Debugging Guide for more information: +# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings +# +# This file uses CoffeeScript Object Notation (CSON). +# If you are unfamiliar with CSON, you can read more about it in the +# Atom Flight Manual: +# http://flight-manual.atom.io/using-atom/sections/basic-customization/#configuring-with-cson diff --git a/atom/packages.list b/.atom/packages.list similarity index 100% rename from atom/packages.list rename to .atom/packages.list diff --git a/.atom/snippets.cson b/.atom/snippets.cson new file mode 100644 index 0000000..cd66bba --- /dev/null +++ b/.atom/snippets.cson @@ -0,0 +1,21 @@ +# 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: +# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson diff --git a/.atom/styles.less b/.atom/styles.less new file mode 100644 index 0000000..e4fad4f --- /dev/null +++ b/.atom/styles.less @@ -0,0 +1,32 @@ +/* + * 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) + */ + +// style the background color of the tree view +.tree-view { + // background-color: whitesmoke; +} + +// style the background and foreground colors on the atom-text-editor-element itself +atom-text-editor { + // color: white; + // background-color: hsl(180, 24%, 12%); +} + +// style UI elements inside atom-text-editor +atom-text-editor .cursor { + // border-color: red; +} diff --git a/setup.sh b/setup.sh index dcd0512..931516b 100755 --- a/setup.sh +++ b/setup.sh @@ -10,12 +10,14 @@ rm -f ~/.zshrc rm -f ~/.vimrc rm -rf ~/.vim rm -f ~/.tmux.conf +rm -f ~/.atom # create symbolic links to dotfiles ln -s ~/.dotfiles/.vimrc ~/.vimrc ln -s ~/.dotfiles/.zshrc ~/.zshrc ln -s ~/.dotfiles/.vim ~/.vim ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf +ln -s ~/.dotfiles/.atom ~/.atom # install vundle if ! [ -d ~/.vim/bundle/Vundle.vim ]; then