4

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.

Boccaperta-IT
  • 1,556
  • 11
  • 24
  • 4
    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

1 Answers1

2

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

Boccaperta-IT
  • 1,556
  • 11
  • 24
  • unrar-free will be ditched in upcoming releases of emacs, you will need to have unarchiver installed instead, source: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=25979c8e35e0f4fdb21b873b6976177df0b02e02 – Deyaa Nov 29 '15 at 03:55