FUEL: New command fuel-help-vocab (v in help browser).

db4
Jose A. Ortega Ruiz 2009-01-06 02:23:38 +01:00
parent 23205a8bf4
commit 76dcfc6c2b
2 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,7 @@ beast.
*** In the help browser:
- h : help for word at point
- v : help for a vocabulary
- a : find words containing given substring (M-x fuel-apropos)
- e : edit current article
- ba : bookmark current page

View File

@ -232,6 +232,11 @@ buffer."
(interactive)
(fuel-help--word-help))
(defun fuel-help-vocab (vocab)
"Ask for a vocabulary name and show its help page."
(interactive (list (fuel-edit--read-vocabulary-name nil)))
(fuel-help--get-vocab vocab))
(defun fuel-help-next (&optional forget-current)
"Go to next page in help browser.
With prefix, the current page is deleted from history."
@ -298,6 +303,7 @@ With prefix, the current page is deleted from history."
(define-key map "l" 'fuel-help-previous)
(define-key map "p" 'fuel-help-previous)
(define-key map "r" 'fuel-help-refresh)
(define-key map "v" 'fuel-help-vocab)
(define-key map (kbd "SPC") 'scroll-up)
(define-key map (kbd "S-SPC") 'scroll-down)
(define-key map "\M-." 'fuel-edit-word-at-point)