summaryrefslogtreecommitdiff
path: root/lisp/finder.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2009-11-26 03:27:10 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2009-11-26 03:27:10 +0000
commit2643c7aa2d1561cae7929d1a4d9cc9eb96c4a393 (patch)
tree60ee8d401f2017ff0a9bb5b54118bbb0e13f4208 /lisp/finder.el
parent2f00e2992cd9ff3118c2aea40e2f878292cd321a (diff)
downloademacs-2643c7aa2d1561cae7929d1a4d9cc9eb96c4a393.tar.gz
(finder-mode-map): Add a menu.
Diffstat (limited to 'lisp/finder.el')
-rw-r--r--lisp/finder.el18
1 files changed, 17 insertions, 1 deletions
diff --git a/lisp/finder.el b/lisp/finder.el
index cba3c832064..5219391b261 100644
--- a/lisp/finder.el
+++ b/lisp/finder.el
@@ -87,7 +87,8 @@
))
(defvar finder-mode-map
- (let ((map (make-sparse-keymap)))
+ (let ((map (make-sparse-keymap))
+ (menu-map (make-sparse-keymap "Finder")))
(define-key map " " 'finder-select)
(define-key map "f" 'finder-select)
(define-key map [follow-link] 'mouse-face)
@@ -98,6 +99,21 @@
(define-key map "p" 'previous-line)
(define-key map "q" 'finder-exit)
(define-key map "d" 'finder-list-keywords)
+
+ (define-key map [menu-bar finder-mode]
+ (cons "Finder" menu-map))
+ (define-key menu-map [finder-exit]
+ '(menu-item "Quit" finder-exit
+ :help "Exit Finder mode"))
+ (define-key menu-map [finder-summary]
+ '(menu-item "Summary" finder-summary
+ :help "Summary item on current line in a finder buffer"))
+ (define-key menu-map [finder-list-keywords]
+ '(menu-item "List keywords" finder-list-keywords
+ :help "Display descriptions of the keywords in the Finder buffer"))
+ (define-key menu-map [finder-select]
+ '(menu-item "Select" finder-select
+ :help "Select item on current line in a finder buffer"))
map))
(defvar finder-mode-syntax-table