1

I am writing a question hoping to find some clue what's going on in my auctex/emacs combination.

I use emacs/auctex to typeset latex document.

In my macbook pro, I am using GNU emacs 22.3.1. With M-x locate-library tex-site.el, it finds

"Applications/Emacs.app/Contents/Resources/site-lisp/tex-site.el".

I do not even need to specify the path to tex-site.el. I don't know how auctex got installed into emacs app directory.

In my iMAC, I am using GNU emacs 24.3.1. I installed auctex 11.87. I first have to specify the path to auctex;

(setq load-path (cons "/usr/share/emacs/site-lisp" load-path))

With M-x located-library tex-site, it finds

"/usr/share/emacs/site-lisp/tex-site.el".

What is the cause for the difference?

The reason I am asking this question is "View" command. In macbook, "View" command of auctex (C-c C-c View) opens my pdf document with acrobat nicely. In iMAC, "View" command of acutex does not do anything without any complaint.

Thanks.

yjw

  • 1
    "I don't know how auctex got installed into emacs app directory." -- it might be a part of Your emacs distribution. – Adobe Oct 16 '13 at 10:10
  • unless it was installed from elpa or marmalade – doed Oct 16 '13 at 11:34
  • elpa and marmalade will default to the ~/.emacs.d folder -- there are a few third-party Emacs distributions built for OSX that include additional third-party packages -- e.g., Aquamacs, Vincent Goulet, etc. For purposes of having identical installations on multiple computers, my personal preference is to have a stock build (--with-ns, but nothing else added) -- e.g., emacsformacosx.com – lawlist Oct 16 '13 at 22:31
1

The difference you experience between the MacBook Pro (with Emacs version 22.3.1) and the iMac (with Emacs version 24.3.1) is because you have two different versions of Emacs, and the third-party packages and customization files are different. The fact that you are using file paths such as /usr/share/emacs/site-lisp is indicative that you have not used a self-contained Emacs installation. If you are going to be using Emacs on multiple computers and you would like to have the same experience, then you should switch to a self-contained Emacs version with all of the stock source files packaged within the Emacs application -- instead of scattered across your hard drive. The following link will provide you with one such packaged application:

http://emacsformacosx.com/

That self-contained Emacs application should be installed on every computer you are using.

Install your additional third-party packages (e.g., AUCTeX and YASnippet) through M-x list packages, which will put everything into the ~/.emacs.d folder. You can develop just one .init.el file and place it inside that folder also and just copy that one file to all of the other computers.

Options for synchronization of the ~/.emacs.d folder include, but are not limited to, creating a symbolic link with Dropbox and have all your computers synchronize over the internet; or, use ForkLift2 to synchronize files / folders between computers. If you are synchronizing, then you would only need to install the third-party packages on one computer and they will be disbursed to the other computers. Revisions to your .init.el file would likewise be synchronized to all computers.

I would recommend not using Homebrew and Macports for the Emacs installation because they will not give you a self-contained Emacs application. For a variety of reasons that occur during the build process, Aquamacs is extremely complicated to obtain complete control over file locations and thus is not an ideal candidate for purposes of synchronizing with multiple computers.

FYI: I presently maintain identical Emacs installations on three (3) different Apple computers and it is a real treat to have the same experience on every computer. I even have a Windows installation of Emacs on Parallels that uses the same third-party package directory as the native OSX installation of Emacs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.