C-x C-f blah.info
opens the file in fundametal mode. I used apropos
and found Info-mode
which I thought might change from fundamental mode
Plain (info `file-name') opens file in info mode. (info) probably does something besides just setting Info-mode. So I would use something like this:
(defun info-mode () (interactive) (let ((file-name (buffer-file-name))) (kill-buffer (current-buffer)) (info file-name))) (add-to-list 'auto-mode-alist '("\\.info\\'" . info-mode))