oakmac / atom-parinfer

Parinfer for Atom
ISC License
204 stars 8 forks source link

Turn on parinfer using code comment #5

Open oakmac opened 8 years ago

oakmac commented 8 years ago

An interesting idea would be to automatically turn on Parinfer via some sentinel code comment in a file.

Similar to JSHint inline configuration.

oakmac commented 8 years ago

After giving this some thought, I think a better approach is to have a flag that tells atom-parinfer to ignore a whole file.

Similar to thoughts in Issue #6, how about:

;; ~~parinfer ignore:file

If atom-parinfer sees this comment anywhere in a file, then it does not allow switching into Indent Mode or Paren Mode on that file.