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

Making linter read .chktexrc #31

Open
edwinksl opened this issue Jul 8, 2016 · 7 comments
Open

Making linter read .chktexrc #31

edwinksl opened this issue Jul 8, 2016 · 7 comments

Comments

@edwinksl
Copy link

edwinksl commented Jul 8, 2016

As mentioned in #9 (comment), I was wondering if there are plans to allow the linter to read .chktexrc files. This would be a nice feature.

@nscaife
Copy link
Owner

nscaife commented Jul 9, 2016

No plans (I currently use Sublime Text), however if you are interested in submitting a pull request, I'll happily merge it!

@raphinesse
Copy link

.chktexrc works for me. I guess chktex finds it automatically.

@edwinksl
Copy link
Author

@raphinesse Huh, interesting. Let me try that.

@raphinesse
Copy link

@edwinksl Among other locations, chktex looks for a .chktexrc (chktexrc on non-UNIX machines) in the current directory. For me it works having the file in the top level of the directory currently opened in atom.

@NanerLee
Copy link

NanerLee commented Jul 4, 2017

@raphinesse can you show you setting of linter-chktex ?

@raphinesse
Copy link

@NanerLee IIRC I did not change any settings for linter-chktex from their defaults

@DrCuriosity
Copy link

One possible approach to deal with this:

  • Execute chktex using the open file's directory as its current working directory (exec with cwd option?)
  • Have a setting that allows you to override default behaviour with your own .chktexrc file, using the -l flag
  • Optionally, a setting to toggle the -g flag for any global .chktexrc file that might be picked up

I'm deep in thesis writing and not well-versed in CoffeeScript, but if anyone wants to have a crack at that I'd be happy to review / test a PR.

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

No branches or pull requests

5 participants