문제

If I startup emacs with emacs -q, then emacs does not know about the command M-x View-goto-percent, (which allows one to hop around large files by percent value).

However, if I type C-h a percent (search apropos "percent"), it finds the View-goto-percent command and I can then use it thereafter.

Why is this happening, and what should I put in .emacs so that M-x View-goto-percent is available at startup?

My emacs version (M-x version) is:

GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.6) of 2012-09-21 on roseapple, modified by Debian
도움이 되었습니까?

해결책

Just require the library containing View-goto-percent:

(require 'view)

Alternatively, create an autoload for this function to load it automatically on its first use:

(autoload 'View-goto-percent "view")

다른 팁

View-goto-percent is of the minor-mode view, so you shoud enable the function with view-mode-enter

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top