市來健吾の日記

プログラマ、(元)物理屋(ナノテク、流体)

EmacsとAUCTeX


  • Yosemite にアップデートしたついでに、環境整備。

  • 前回の設定の記録(14:49 - 2012年11月14日)
    tex 環境のはなし、
    emacscocoa な 24.2 http://emacsformacosx.com/ 使ってるんだが、
    auctex はこいつの package からインストールした。
    この ELPA http://tromey.com/elpa/ っての、知らなかった。

  • 上記emacsformacosx.com に行ってみたら、何と数日前にリリースされたばかり (cf.GNU Emacs 24.4 Released Today@/.)という 24.4 が すでに出てたので、入ってた 24.2 と入れ替えた。

  • が、ELPA から auctex が消えてたみたいで、めんどくせー、と。

  • ソースは AUCTEX / Download for Mac OS X に 11.87 ってのがある。

  • superuser.com: Installing AucTeX 1.86 over Emacs.app in OS Xみたら Emacs.app で AUCTeX を入れる話が出てて、やる気が出た。

    • ポイントは、 configure に渡すパラメータ。

    • そこでは tex 系は MacTeX を想定してて、
          
      ./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
      --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp
      --with-texmf-dir=/usr/local/texlive/texmf-local
      みたいな感じだったので、

      ./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
      --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp
      --with-texmf-dir=/opt/local/share/texmf-local
      として、 make; sudo make install してみる。

  • できた。以上。