Cx Cf 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.
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 Mx info
( n
for next, u
for up, hyperlinks, etc..)? I'm sure this is obvious, but I can't figure it out.
尝试Cu Ch i
(即通常的带有前缀参数的信息调用)。
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))
When your cursor is on the filename in the dired
buffer, press I
( shift
and i
). Requires dired-x, which is part of GNU Emacs.
I runs the command dired-info which is an interactive compiled Lisp function in `dired-x.el'. It is bound to I. (dired-info) Run info on this file.
You can use org mode . Type the following in a buffer already set using Mx org-mode
:
info:path/to/blah
Then invoke info by placing the cursor over this and hitting Cc Co
. Alternatively, click on it with your mouse. You can also set the whole thing in double square brackets, if you path contains whitespace.
(add-to-list 'auto-mode-alist '("\\.info\\'" . Info-on-current-buffer))
Add the following to your .emacs initialization file:
(setq auto-mode-alist
(append '(("\\.info" . Info-mode)) auto-mode-alist))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.