home *** CD-ROM | disk | FTP | other *** search
- ;;;; loadmenus.jl -- Set up standard menu definitions (Amiga only)
- ;;; Copyright (C) 1993, 1994 John Harper <jsh@ukc.ac.uk>
-
- ;;; This file is part of Jade.
-
- ;;; Jade is free software; you can redistribute it and/or modify it
- ;;; under the terms of the GNU General Public License as published by
- ;;; the Free Software Foundation; either version 2, or (at your option)
- ;;; any later version.
-
- ;;; Jade is distributed in the hope that it will be useful, but
- ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
- ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ;;; GNU General Public License for more details.
-
- ;;; You should have received a copy of the GNU General Public License
- ;;; along with Jade; see the file COPYING. If not, write to
- ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- (if (not (amiga-p))
- (error "Menus only work on an Amiga")
- (set-menu
- '("Project"
- ("Open file... (C-x C-f)" (find-file))
- ("Open window (C-x 2)" (open-window))
- ("Insert file... (C-x i)" (insert-file))
- ()
- ("Save file (C-x C-s)" (save-file))
- ("Save file as... (C-x C-w)" (save-file-as))
- ("Save some... (C-x s)" (save-some-buffers))
- ()
- ("Clear buffer" (when (check-changes) (clear-buffer)))
- ("Kill buffer... (C-x k)" (kill-buffer))
- ("Switch buffer... (C-x b)" (switch-to-buffer))
- ("Close window (C-x 0)" (close-window))
- ("Close other windows (C-x 1)" (close-other-windows))
- ()
- ("Quit (C-x C-c)" (save-and-quit)))
- '("Edit"
- ("Mark block (C-m)" (block-toggle))
- ("Mark rectangles (C-M)" (toggle-rect-blocks))
- ()
- ("Kill block (C-w)" (write-clip 0 (cut-block)))
- ("Copy block (ESC w)" (write-clip 0 (copy-block)))
- ("Delete block (C-z)" (delete-block))
- ()
- ("Yank (C-y)" (insert (read-clip 0)))
- ("Rectangular yank (C-Y)" (insert-rect (read-clip)))
- ("Insert block (C-i)" (insert-block)))
- '("Find"
- ("Search... (C-s)" (search-forward))
- ("Repeat search (C-S)" (search-forward t))
- ("Repeat search backwards (C-R)" (search-backward t))
- ()
- ("Replace with... (ESC p)" (simple-replace))
- ("Repeat replace (ESC P)" (simple-replace t))
- ()
- ("Line number... (C-j)" (goto-line))
- ("Matching bracket (ESC n)" (set-auto-mark) (goto-matching-bracket))
- ("Next window (C-x o)" (set-current-window (next-window) t)))
- '("Marks"
- ("Set auto-mark (C-#)" (set-auto-mark))
- ("Goto auto-mark (C-x C-x)" (swap-cursor-and-mark))
- ()
- ("Set #1 (S-F1)" (set-mark mark-1 (cursor-pos) (current-buffer)))
- ("Set #2 (S-F2)" (set-mark mark-2 (cursor-pos) (current-buffer)))
- ("Set #3 (S-F3)" (set-mark mark-3 (cursor-pos) (current-buffer)))
- ()
- ("Goto #1 (F1)" (goto-mark mark-1))
- ("Goto #2 (F2)" (goto-mark mark-2))
- ("Goto #3 (F3)" (goto-mark mark-3)))))
-