Created
May 16, 2015 05:27
-
-
Save psachin/73e7e75d1fd82d4277cc to your computer and use it in GitHub Desktop.
python-insert-utf8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun python-insert-utf8() | |
"Insert default uft-8 encoding for python" | |
(interactive) | |
(newline) | |
(goto-char (point-min)) | |
(insert "# -*- coding: utf-8 -*-") | |
(next-line)) | |
(add-hook 'python-mode-hook 'python-insert-utf8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment