From 7e1773c531db33496cf07a21e9a7b30758e30346 Mon Sep 17 00:00:00 2001 From: Hampus Persson Date: Tue, 24 Nov 2015 09:36:55 +0100 Subject: [PATCH 1/2] add stylus preferences to emmet preferences object loop through set stylus properties and relay these to emmet --- lib/emmet.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/emmet.coffee b/lib/emmet.coffee index 2cf76ba..3bf7139 100644 --- a/lib/emmet.coffee +++ b/lib/emmet.coffee @@ -17,6 +17,9 @@ singleSelectionActions = [ toggleCommentSyntaxes = ['html', 'css', 'less', 'scss'] +for k, v of atom.config.get 'emmet.stylus' + emmet.preferences.set('stylus.' + k, v); + getUserHome = () -> if process.platform is 'win32' return process.env.USERPROFILE From c3a94b9b2e656b70e049c0cd616355103b6d7cc8 Mon Sep 17 00:00:00 2001 From: Hampus Persson Date: Tue, 24 Nov 2015 09:38:50 +0100 Subject: [PATCH 2/2] add stylus to grammars that trigger tab expansion --- keymaps/emmet.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keymaps/emmet.cson b/keymaps/emmet.cson index 1ceb554..dbbf8c1 100644 --- a/keymaps/emmet.cson +++ b/keymaps/emmet.cson @@ -30,7 +30,7 @@ # language-specific Tab triggers # you can add more triggers by changing `grammar` attribute values -'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="erb"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])': +'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="erb"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="stylus"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])': 'tab': 'emmet:expand-abbreviation-with-tab' '.platform-darwin atom-text-editor:not([mini])':