Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defun python-insert-utf8()
"Insert default uft-8 encoding for python"
(goto-char (point-min))
(insert "# -*- coding: utf-8 -*-")
(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
You can’t perform that action at this time.