Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I ran into a problem with an Emacs Lisp function, and I got a patch from the developer. I'm running Debian Linux and the file to be patched does not even exist on my system. (The patch is for tex-mode.el and I have only tex-mode.el.gz and tex-mode.elc.) I would prefer not to stomp all over the Debian distribution code in /usr/share/emacs. Is there a way for me to install the patched tex-mode.el in my home directory so that it takes priority over the version in the system directory?

share|improve this question

You can copy tex-mode.el.gz to your home directory (say in .emacs.d) and then gunzip it, apply the patch, and byte compile it. Of course the directory where you put it has to be in your load-path, or you could just add (load "/path/to/new/tex-mode.el") to your .emacs which would ensure you don't get the old version.

share|improve this answer
You can even do this from Emacs: open tex-mode.el.gz and Emacs will decompress it on the fly. Save a copy with C-x C-w, and as long as the new file name doesn't end with .gz, it will be saved uncompressed. – legoscia Aug 8 '12 at 12:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .