johnsu01 ([info]johnsu01) wrote,
@ 2007-06-30 16:37:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current music:Rush -- Bastille Day
Entry tags:emacs, microsoft, word

Reading Word documents in Emacs

How did I not know about no-word.el until now?

I added to my .emacs:

;;;_ , Word documents

(when (locate-library "no-word")
  (require 'no-word)
  (add-to-list 'auto-mode-alist '("\\.doc\\'" . no-word)))

Now any .doc file I visit in Emacs is run through antiword, so I can read it as plain text.



(Post a new comment)


[info]eclair
2007-07-01 07:43 am UTC (link)
I've been using it for quite a while now :) It's very nifty! :D

(Reply to this)

tsk tsk
[info]offby1.myopenid.com
2007-07-01 02:40 pm UTC (link)
;; less cruft!

(with-library "no-word"
(add-to-list 'auto-mode-alist (cons (rx ".doc" eos)
'no-word)))

(Reply to this) (Thread)

Re: tsk tsk
[info]johnsu01
2007-07-01 03:15 pm UTC (link)
Yes, I should use a macro, like your with-library (you know you made that up, right? :) ).

I also should know by now that require has a NOERROR argument, and I should be using autoload anyway.


(Reply to this) (Parent)(Thread)

Re: tsk tsk
(Anonymous)
2007-07-14 07:06 pm UTC (link)
All the more reason to step down, really.

mattl

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…