Subject: bug#5658: 23.1; Viewing .info files in Emacs' info-viewer

From: Juri Linkov <[email-masked]>
Date: Tue, 02 Mar 2010 23:11:18 +0200

> when visiting .info files in Emacs via find-file Emacs opens the file in the
> default major-mode instead of Emacs' info-mode. I suggest therefore to add the
> following default-association:
>
>  (add-to-list 'auto-mode-alist '("\\.info\\'" . info))

This doesn't work for me.  However, the following does:

(add-to-list 'auto-mode-alist '("\\.info\\'" .
              (lambda () (interactive)
                (info (buffer-file-name)))))

I think this has too bad consequences: it visits the Info file,
but doesn't display it.  Instead, it displays another buffer
with the Info manual.

Maybe `dired-info' from `dired-x.el' is more suitable for your needs?
At least, it doesn't visit the Info file.

-- 
Juri Linkov
http://www.jurta.org/emacs/