move ~/.atomicity stuff into "dotatom" extension

This commit is contained in:
Chris Wanstrath
2011-11-25 18:18:16 -08:00
parent b776e422c3
commit c4746047cc
3 changed files with 12 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
fs = require 'fs'
module.exports =
class Dotatom
constructor: ->
try
require "~/.atomicity"
catch e
console.log 'No ~/.atomicity module found.'
atom.settings.load "~/.atomicity/settings.coffee"
atom.keybinder.load "~/.atomicity/key-bindings.coffee"

View File

@@ -10,7 +10,6 @@ class KeyBinder
constructor: ->
@load require.resolve "key-bindings.coffee"
@load "~/.atomicity/key-bindings.coffee"
load: (path) ->
path = require.resolve path

View File

@@ -17,10 +17,6 @@ module.exports =
class Settings
settings: {}
constructor: ->
@load "~/.atomicity/settings.coffee"
console.log @settings
load: (path) ->
path = require.resolve path
if not fs.isFile path