# HG changeset patch # User Oleksandr Gavenko # Date 1499157329 -10800 # Node ID e6ea63ccab39afe637ff28e64442afa2ed829e34 # Parent 59d0e2ab77f15d3da232bcc24c2d9dae70639173 Modern Windows can work with Unicode. No need for codepage. diff -r 59d0e2ab77f1 -r e6ea63ccab39 .emacs-my --- a/.emacs-my Mon Jun 12 14:41:05 2017 +0300 +++ b/.emacs-my Tue Jul 04 11:35:29 2017 +0300 @@ -533,7 +533,7 @@ ;; Use shell from Cygwin/MinGW. (setq shell-file-name "bash") (setenv "SHELL" "/bin/bash") - (modify-coding-system-alist 'process "bash" '(cp1251-unix . cp1251-unix)) + ;; (modify-coding-system-alist 'process "bash" '(cp1251-unix . cp1251-unix)) ) (when (eq system-type 'windows-nt) @@ -994,9 +994,9 @@ (cond ((equal window-system 'w32) ; also (string-equal system-type "windows-nt") ;; (set-selection-coding-system 'utf-16-le-dos) - (setq-default buffer-file-coding-system 'cp1251) - (setq default-file-name-coding-system 'cp1251) - (setq default-process-coding-system '(cp1251 . cp1251)) + ;; (setq-default buffer-file-coding-system 'cp1251) + ;; (setq default-file-name-coding-system 'cp1251) + ;; (setq default-process-coding-system '(cp1251 . cp1251)) ) ((equal window-system 'x) (prefer-coding-system 'utf-8-unix) @@ -1006,9 +1006,9 @@ ) ((eq system-type 'cygwin) (when (and (getenv "LANG") (string-match "1251\\'" (getenv "LANG"))) - (prefer-coding-system 'cp1251-unix) + ;; (prefer-coding-system 'cp1251-unix) (prefer-coding-system 'utf-8-unix) - (modify-coding-system-alist 'process ".*" 'cp1251-unix) + ;; (modify-coding-system-alist 'process ".*" 'cp1251-unix) ) ) ((eq system-type 'darwin) @@ -3118,8 +3118,8 @@ (prettify-symbols-mode -1))) (add-hook 'python-mode-hook 'my-python-mode-hook) -(when (equal window-system 'w32) - (add-to-list 'process-coding-system-alist '("python" cp1251-unix . cp1251-unix))) +;; (when (equal window-system 'w32) +;; (add-to-list 'process-coding-system-alist '("python" cp1251-unix . cp1251-unix))) (add-to-list 'auto-mode-alist '("/requirements.txt\\'" . conf-mode))