From: Juri Linkov <juri@jurta.org>
To: usr.gentoo@googlemail.com
Cc: 5658@debbugs.gnu.org
Subject: bug#5658: 23.1; Viewing .info files in Emacs' info-viewer
Date: Tue, 02 Mar 2010 23:11:18 +0200 [thread overview]
Message-ID: <87k4tu5udt.fsf@mail.jurta.org> (raw)
In-Reply-To: <4b8ac3ce.0710660a.2ece.ffffbb3d@mx.google.com> (usr gentoo's message of "Sun, 28 Feb 2010 20:28:19 +0100")
> 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/
next prev parent reply other threads:[~2010-03-02 21:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-28 19:28 bug#5658: 23.1; Viewing .info files in Emacs' info-viewer usr.gentoo
2010-03-02 21:11 ` Juri Linkov [this message]
2010-03-03 6:05 ` Kevin Rodgers
2010-03-03 19:30 ` Juri Linkov
2010-03-04 2:45 ` Stefan Monnier
2010-03-06 17:55 ` Juri Linkov
2010-03-04 7:10 ` Kevin Rodgers
2010-03-04 21:18 ` Juri Linkov
2010-03-05 5:29 ` Kevin Rodgers
2010-03-05 20:23 ` Stefan Monnier
2012-12-08 3:37 ` Chong Yidong
2012-12-08 9:07 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4tu5udt.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=5658@debbugs.gnu.org \
--cc=usr.gentoo@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.