Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable editorconfig-mode for certain major modes? #76

Closed
mcandre opened this issue Mar 17, 2016 · 3 comments
Closed

How to disable editorconfig-mode for certain major modes? #76

mcandre opened this issue Mar 17, 2016 · 3 comments

Comments

@mcandre
Copy link

mcandre commented Mar 17, 2016

While waiting for #75, it would be useful to workaround editorconfig flaws with certain major modes, by disabling editorconfig when in those modes.

@mcandre
Copy link
Author

mcandre commented Mar 17, 2016

Accomplished with

(add-hook 'sh-mode-hook
          (lambda ()
            (editorconfig-mode 0)))

@mcandre mcandre closed this as completed Mar 17, 2016
@10sr
Copy link
Member

10sr commented Mar 19, 2016

I think this will not work as expected... it will disable editorconfig "globally": properties will not be applied to any files opened after visiting sh-mode file.
I'll add a new variable for this.

@10sr
Copy link
Member

10sr commented Mar 21, 2016

I've added a variable editorconfig-exclude-modes for this porpose 😸

@10sr 10sr closed this as completed Mar 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants