From 8ff7472752c515168b2d4bc0901600cef0a3ce09 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 24 Jun 2014 10:17:45 -0700 Subject: [PATCH] add atom config --- .gitignore | 4 ++++ atom/config.cson | 25 +++++++++++++++++++++++++ atom/init.coffee | 14 ++++++++++++++ atom/keymap.cson | 18 ++++++++++++++++++ atom/snippets.cson | 15 +++++++++++++++ atom/styles.less | 21 +++++++++++++++++++++ 6 files changed, 97 insertions(+) create mode 100644 atom/config.cson create mode 100644 atom/init.coffee create mode 100644 atom/keymap.cson create mode 100644 atom/snippets.cson create mode 100644 atom/styles.less diff --git a/.gitignore b/.gitignore index 0b5da07..cace7e7 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ emacs.d/auto-save-list/.saves* *.pyc *.cache irb_history +atom/compile-cache +atom/.node-gyp +atom/storage +atom/packages diff --git a/atom/config.cson b/atom/config.cson new file mode 100644 index 0000000..3187815 --- /dev/null +++ b/atom/config.cson @@ -0,0 +1,25 @@ +'exception-reporting': + 'userId': 'cdd550b3-4a3f-778c-9b88-71ba634f106c' +'release-notes': + 'viewedVersion': '0.94.0' +'welcome': + 'showOnStartup': false +'metrics': + 'userId': 'e31a97b67a24d6f167e790f4438b2b7f86422ca7' +'editor': + 'fontFamily': 'Menlo' + 'softWrap': true + 'fontSize': 14 +'core': + 'themes': [ + 'atom-dark-ui' + 'atom-light-syntax' + ] + 'projectHome': '/Users/sjs/Projects' +'markdown-preview': + 'grammars': [ + 'source.gfm' + 'source.litcoffee' + 'text.plain' + 'text.plain.null-grammar' + ] diff --git a/atom/init.coffee b/atom/init.coffee new file mode 100644 index 0000000..4d10e77 --- /dev/null +++ b/atom/init.coffee @@ -0,0 +1,14 @@ +# 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 make opened Markdown files always be soft wrapped: +# +# path = require 'path' +# +# atom.workspaceView.eachEditorView (editorView) -> +# editor = editorView.getEditor() +# if path.extname(editor.getPath()) is '.md' +# editor.setSoftWrap(true) diff --git a/atom/keymap.cson b/atom/keymap.cson new file mode 100644 index 0000000..bce80b7 --- /dev/null +++ b/atom/keymap.cson @@ -0,0 +1,18 @@ +# Your keymap +# +# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors +# to apply styles to elements, Atom keymaps use selectors to associate +# keystrokes with events in specific contexts. +# +# 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: +# +# '.editor': +# 'enter': 'editor:newline' +# +# 'body': +# 'ctrl-P': 'core:move-up' +# 'ctrl-p': 'core:move-down' +# diff --git a/atom/snippets.cson b/atom/snippets.cson new file mode 100644 index 0000000..9578993 --- /dev/null +++ b/atom/snippets.cson @@ -0,0 +1,15 @@ +# 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' +# diff --git a/atom/styles.less b/atom/styles.less new file mode 100644 index 0000000..d37163b --- /dev/null +++ b/atom/styles.less @@ -0,0 +1,21 @@ +/* + * Your Stylesheet + * + * This stylesheet is loaded when Atom starts up and is reloaded automatically + * when it is changed. + * + * If you are unfamiliar with LESS, you can read more about it here: + * http://www.lesscss.org + */ + +.tree-view { + +} + +.editor { + +} + +.editor .cursor { + +}