I have this comment that I write in my python file
# -*- Mode: Python; tab-width: 8; indent-tabs-mode: nil; python-indent-offset: 2 -*- # vim:set et sts=4 ts=4 tw=80:
But when I load a python file, there's the following messages:
Can’t guess python-indent-offset, using defaults: 4
However, it set the indentation to the value precised (I tried with 99). But it still display the message. It seems that it tried first to guess the indent, then it read the local variable.
I don't want to set
python-guess-indent-offset to nil (for files which aren't mine) but I would like to get ride of this warning if possible.
Does anyone have an idea how?