Emacs constantly asks before saving python C # - * code - encoding: ASCII - * -

I have a python script that starts with:

#!/usr/bin/env python
# -*- coding: ASCII -*-

and before saving, he always breaks my window and asks:

Warning (mule): The specified `ASCII 'encoding system for the current buffer / file is specified: encoding tag. It is highly recommended that you fix it before writing to a file.

and I need to say yes, is there a way to disable this? Sorry for the question, but I had no luck on Google.

Gabriel

+3
source share
2 answers

, script, , Emacs, ASCII . ( Emacs US-ASCII.) .emacs :

(define-coding-system-alias 'ascii 'us-ascii)

Emacs # -*- coding: ASCII -*-.

+7

Python Enhancement (PEP) 263, Python, . :

  • , Python ASCII

    , . , :

  • , , , :

    # coding=<encoding name>
    

    (, = a :). , # coding: ascii # -*- coding: ASCII -*-, . , . Emacs.

+3

All Articles