From 00f7796e93f7ce05a64d39214a12ee7eb2e7d6ff Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 25 Sep 2012 15:28:52 -0700 Subject: [PATCH] Load local bundles from ~/.atom/bundles --- src/app/text-mate-bundle.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/text-mate-bundle.coffee b/src/app/text-mate-bundle.coffee index 09f9de372..d63c57f6f 100644 --- a/src/app/text-mate-bundle.coffee +++ b/src/app/text-mate-bundle.coffee @@ -11,7 +11,12 @@ class TextMateBundle @bundles: [] @loadAll: -> - for bundlePath in fs.list(require.resolve("bundles")) + globalBundles = fs.list(require.resolve("bundles")) + + localBundlePath = fs.join(atom.configDirPath, "bundles") + localBundles = fs.list(localBundlePath) if fs.exists(localBundlePath) + + for bundlePath in globalBundles.concat(localBundles ? []) @registerBundle(new TextMateBundle(bundlePath)) @registerBundle: (bundle)->