dired ã§è¤æ°ã®ãã¡ã¤ã«ã®æåã³ã¼ããä¸æ¬å¤æ
http://www.bookshelf.jp/soft/meadow_25.html#SEC273
;;; dired ã使ã£ã¦ãä¸æ°ã«ãã¡ã¤ã«ã® coding system (æ¼¢å) ãå¤æãã ;; m ã§ãã¼ã¯ã㦠T ã§ä¸æ¬å¤æ (require 'dired-aux) (add-hook 'dired-mode-hook (lambda () (define-key (current-local-map) "T" 'dired-do-convert-coding-system))) (defvar dired-default-file-coding-system nil "*Default coding system for converting file (s).") (defvar dired-file-coding-system 'no-conversion) (defun dired-convert-coding-system () (let ((file (dired-get-filename)) (coding-system-for-write dired-file-coding-system) failure) (condition-case err (with-temp-buffer (insert-file file) (write-region (point-min) (point-max) file)) (error (setq failure err))) (if (not failure) nil (dired-log "convert coding system error for %s:\n%s\n" file failure) (dired-make-relative file)))) (defun dired-do-convert-coding-system (coding-system &optional arg) "Convert file (s) in specified coding system." (interactive (list (let ((default (or dired-default-file-coding-system buffer-file-coding-system))) (read-coding-system (format "Coding system for converting file (s) (default, %s): " default) default)) current-prefix-arg)) (check-coding-system coding-system) (setq dired-file-coding-system coding-system) (dired-map-over-marks-check (function dired-convert-coding-system) arg 'convert-coding-system t))
追è¨
è¨å®æ¸ãã¦ãããã£ã¨ä½¿ã£ã¦ãªãã£ããã©ãããããã便å©ã
ãã¡ã¤ã«ãã¨ã«ãC-x RET r utf-8ãããããããã®ã£ã¦ãã£ããæéãªã®ã§
ä¸æ¬ã§å¤æã§ããã¨å©ããï¼