Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; MS Windows clipboard is UTF-16LE.
- (set-clipboard-coding-system 'utf-16le-dos)
- ;; Order is important here. If windows-1251 has higher priority than
- ;; utf-8 then utf-8 would note display correctly.
- ;; It works fine the other way around.
- ;; UTF-8 as default process coding system allows us to use cyrillic VC log.
- (prefer-coding-system 'windows-1251)
- (prefer-coding-system 'utf-8)
- (add-hook 'dired-mode-hook
- (lambda ()
- (make-local-variable 'coding-system-for-read)
- (setq coding-system-for-read 'windows-1251)))
- ;; Allows us to save russian file names.
- (setq default-file-name-coding-system 'windows-1251)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement