Minor refactors & tweaks across the board

This commit is contained in:
Henrik Lissner 2019-08-06 14:50:42 -04:00
parent 62aea0a73a
commit 3423974234
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 9 additions and 6 deletions

View file

@ -56,6 +56,7 @@ called.")
"Use the correct Python executables for Flycheck."
(let ((executable python-shell-interpreter))
(save-excursion
(goto-char (point-min))
(save-match-data
(when (or (looking-at "#!/usr/bin/env \\(python[^ \n]+\\)")
(looking-at "#!\\([^ \n]+/python[^ \n]+\\)"))