diff --git a/extensions/dotatom/index.coffee b/extensions/dotatom/index.coffee new file mode 100644 index 000000000..6095edaa9 --- /dev/null +++ b/extensions/dotatom/index.coffee @@ -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" \ No newline at end of file diff --git a/src/stdlib/key-binder.coffee b/src/stdlib/key-binder.coffee index 45038b27f..3c28d7f9a 100644 --- a/src/stdlib/key-binder.coffee +++ b/src/stdlib/key-binder.coffee @@ -10,7 +10,6 @@ class KeyBinder constructor: -> @load require.resolve "key-bindings.coffee" - @load "~/.atomicity/key-bindings.coffee" load: (path) -> path = require.resolve path diff --git a/src/stdlib/settings.coffee b/src/stdlib/settings.coffee index 553027fb4..21961f5ce 100644 --- a/src/stdlib/settings.coffee +++ b/src/stdlib/settings.coffee @@ -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