Advertisement
sg2002

emacs russian

Mar 31st, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. ;; MS Windows clipboard is UTF-16LE.
  2. (set-clipboard-coding-system 'utf-16le-dos)
  3. ;; Order is important here. If windows-1251 has higher priority than
  4. ;; utf-8 then utf-8 would note display correctly.
  5. ;; It works fine the other way around.
  6. ;; UTF-8 as default process coding system allows us to use cyrillic VC log.
  7. (prefer-coding-system 'windows-1251)
  8. (prefer-coding-system 'utf-8)
  9. (add-hook 'dired-mode-hook
  10. (lambda ()
  11. (make-local-variable 'coding-system-for-read)
  12. (setq coding-system-for-read 'windows-1251)))
  13. ;; Allows us to save russian file names.
  14. (setq default-file-name-coding-system 'windows-1251)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement