3

Is it possible to open a CBR file with Emacs?

I am not asking for a package similar to MComix, just a quick way to read the content of a .cbr file.

  • 3
    According to the link you cited: Comic book archive files are not a distinct file format; only the file name extension differs from a standard file of the given archive type. The standard formats include: .cb7 (i.e., 7z); cba (i.e., ACE); .cbr (i.e., RAR); .cbt (i.e., TAR); and .cbz (i.e., ZIP). Emacs contains archive-mode, which can open *.rar files if you have that utility installed. So, you need that utility plus you need to add cbr to the auto-mode-alist for archive-mode -- i.e., (add-to-list 'auto-mode-alist '("\\.\\(cbr\\)\\'" . archive-mode)) – lawlist Jan 26 '15 at 18:23
  • 1
    The full version of RAR is not free; however, it does have a free trial. Unfortunately, archive-mode is out-of-date and needs a tweak or two to properly handle the current version of RAR -- that is a different question than the one you are asking. I have already configured a custom version of archive-mode to take advantage of the current full version of RAR -- so if you decide to go that route, then post a new question . . . If you have an older version of RAR or can find an older version, then you will not need to modify archive-mode. – lawlist Jan 26 '15 at 18:27
  • This is the RAR I have installed: rar: Installed: 2:5.2.0-dmo1 – Boccaperta-IT Jan 26 '15 at 18:35
2

Installing unrar-free (I am on Debian sid) and adding .cbr to archive-mode as suggested by lawlist here, did the trick.

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.