Is there any particular reason this isn't part of sage.el already?

On Nov 12, 6:20 pm, Michael Orlitzky <mich...@orlitzky.com> wrote:
> On 11/12/2011 08:47 PM, Bill Janssen wrote:
>
> > You can visit a .tar.bz2 file with GNU Emacs 23, and it works.  If I
> > rename the .spkg file to .tar.bz2, it works.  But I don't see how to
> > tell Emacs that .spkg == .tar.bz2...
>
> John beat me to it, but this works in your .emacs file.
>
> ;; We have to disable auto-compression-mode first,
> ;; don't ask me why.
> (auto-compression-mode 0)
>
> ;; Add the "spkg" extension to the list of stuff we want to
> ;; decompress automatically (with bzip2).
> (add-to-list 'jka-compr-compression-info-list
>              ["\\.spkg$"
>               "zipping"        "bzip2"         ()
>               "unzipping"      "bzip2"         ("-d")
>               nil t])
>
> ;; Re-enable auto-compression mode.
> (auto-compression-mode 1)
>
> ;; Auto-compression will bunzip2 the spkg file, but then Emacs
> ;; needs to know that it should use tar-mode on what bunzip2 spits
> ;; out.
> (setq auto-mode-alist
>       (append
>        (list
>         '("\\.spkg$" . tar-mode)
>         )
>
>        auto-mode-alist))

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to