如何在信息模式下打开emacs中的* .info文件? [英] how to open *.info file in emacs in info mode?
问题描述
C-x C-f blah.info
以资金模式打开文件。我使用 apropos
,并发现信息模式
,我认为可能从基本模式改变为信息模式,但是会抛出lisp错误。
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 into Info mode, but that throws a lisp error.
如何在emacs中打开外部/第三方* .info文件,以便在查看 Mx信息
( n
为下一个, u
为up,超链接等。 )?我确信这是很明显的,但我无法理解。
How can I open a external/thirdparty *.info file in emacs so that I get the same bells and whistles as when I'm looking at M-x info
(n
for next, u
for up, hyperlinks, etc..)? I'm sure this is obvious, but I can't figure it out.
推荐答案
Plain(info`file-name')在信息模式下打开文件。 (信息)可能会做一些除了设置信息模式之外的东西。所以我会使用这样的东西:
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))
这篇关于如何在信息模式下打开emacs中的* .info文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!