如何在信息模式下打开emacs中的* .info文件?

编程入门 行业动态 更新时间:2024-10-27 14:28:19
本文介绍了如何在信息模式下打开emacs中的* .info文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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文件?

本文发布于:2023-10-08 14:01:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1472843.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   如何在   模式下   信息   emacs

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!