Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

[ISSUE-3] forcing hard tabs for make files #8

Closed
wants to merge 1 commit into from

Conversation

parabuzzle
Copy link

A fix for #3

atom.workspaceView.eachEditorView (editorView) ->
editor = editorView.getEditor()
grammarScope = editor.getGrammar()['scopeName']
if grammarScope is 'text.plain.null-grammar'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is here because when you load a makefile directly without atom already running (ie: atom Makefile), the Makefile language isn't loaded before this code is run so the scope is set to a null-grammar.

In this case, I fall back to parsing the file type directly so that it will still work on that first load.

@probablycorey
Copy link

This is related to atom/atom#1723. The goal is to have a general solution for all grammars.

@x110dc
Copy link

x110dc commented Jun 24, 2014

+1

@parabuzzle parabuzzle changed the title 🐛 forcing hard tabs for make files [LANGUAGE-MAKE-3] forcing hard tabs for make files Sep 11, 2014
@parabuzzle parabuzzle changed the title [LANGUAGE-MAKE-3] forcing hard tabs for make files [ISSUE-3] forcing hard tabs for make files Sep 11, 2014
@kevinsawicki
Copy link
Contributor

This was fixed in core via atom/atom@7abfd45 and will be handled in the future by supporting a scoped setting so this can be opt-in for any grammar.

So I'm going to close out this PR, sorry for not providing timely updates and feedback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants