Wanderlust その5at UNIX
Wanderlust その5 - 暇つぶし2ch34:名無しさん@お腹いっぱい。
05/05/15 07:45:21
>>33
自動ではないけど C-u C-c C-x C-i で指定はできる。

**.doc のファイル名に規則性があるなら、mime-file-types に設定すると
できると思う。

規則性がないなら、mime-find-file-type に advice をしかけるくらいか。
(defadvice mime-find-file-type (around guess-doc activate)
(if (and (string-match "\\.doc$" (ad-get-arg 0))
(not (with-temp-buffer
(call-process "file" nil t nil (ad-get-arg 0))
(goto-char (point-min))
(re-search-forward "Microsoft Office Document" nil t))))
(setq ad-return-value
'("text" "plain" nil nil "inline" (("filename" . file))))
ad-do-it))



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch