[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .info files
From: |
Stefan Monnier |
Subject: |
Re: .info files |
Date: |
Thu, 12 Apr 2012 12:12:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
> It would be nice if .info files opened up in Info-mode automatically.
> E.g. something like,
> (add-to-list 'auto-mode-alist
> '("\\.info\\'" . (lambda () (interactive)
> (let ((file-name (buffer-file-name)))
> (kill-buffer (current-buffer))
> (info file-name)))))
Agreed. I wrote Info-on-current-buffer a long time ago to try and
address this need, but it's clearly not good enough.
Your code above is (sadly) not quite good enough either since its use of
kill-buffer+info will likely introduce misbehaviors in various cases.
Stefan