Do you lint your elisp files?
March 19, 2020
This will be a short post this week. I just wanted to share something I learned recently about flycheck and my elisp files. I use flycheck to lint most of my code but I had it configured specifically for the languages I use the most. I was having some problems with flycheck and I discovered "global-flycheck-mode" and decided to use that rather than individually configure it for each language. I was surprised to see it lint my elisp files. I'm fairly new to emacs, only started using it a couple of years ago, and I've since rolled my own configuration. Flycheck identified maybe 30 items it wanted me to tweak in my configuration so I did. I also learned about "checkdoc" which helped even more. I was able to get it down to 2 warnings which don't exist on my Mac I think because they are mac specific configurations:
Those two lines give me the warning:
(setq mac-command-modifier 'meta) (setq mac-option-modifier 'super)
And I'm not sure how to get rid of them on my Linux machine. At any rate if you don't already lint your elisp files I would highly recommend it. I feel like it is making me a stronger elisp coder!
assignment to free variable 'mac-command-modifier' assignment to free variable 'mac-option-modifier'