atom-parinfer icon indicating copy to clipboard operation
atom-parinfer copied to clipboard

Turn on parinfer using code comment

Open oakmac opened this issue 10 years ago • 1 comments

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

Similar to JSHint inline configuration.

oakmac avatar Nov 06 '15 01:11 oakmac

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.

oakmac avatar Nov 14 '15 12:11 oakmac