emacs-devel
[Top][All Lists]
Advanced

[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 14:30:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

> True that, what about the following:
> (add-to-list 'auto-mode-alist
>            '("\\.info\\'" . (lambda () (interactive)
>                               (require 'info)
>                               (info-setup (buffer-file-name) 
> (current-buffer)))))

Looks better, indeed.  Still sounds a bit risky since it throws away the
current content of the buffer, so it probably won't work right in things
like archive-members.


        Stefan


PS: Reminds me that I don't like the way our Info files (and some other
project's as well) don't have a .info extension.
PPS: And of course, the question remains of what to do when visiting
foo-N.info.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]