mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
move ~/.atomicity stuff into "dotatom" extension
This commit is contained in:
12
extensions/dotatom/index.coffee
Normal file
12
extensions/dotatom/index.coffee
Normal 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"
|
||||
@@ -10,7 +10,6 @@ class KeyBinder
|
||||
|
||||
constructor: ->
|
||||
@load require.resolve "key-bindings.coffee"
|
||||
@load "~/.atomicity/key-bindings.coffee"
|
||||
|
||||
load: (path) ->
|
||||
path = require.resolve path
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user