forked from kmroz/rmoo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
rmoo-list.el
32 lines (27 loc) · 947 Bytes
/
rmoo-list.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;rmoo-list
;;
;; Random functions for editing moo list properties
;;
;; Original Author: Ron Tapia <[email protected]>
;; Revised by: mattcamp
;;
(require 'rmoo)
(provide 'rmoo-list)
(defvar rmoo-list-mode-hooks nil "List of functions run everytime emacs enters MOO List Mode")
(defvar rmoo-list-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c c") 'rmoo-upload-and-destroy)
(define-key map (kbd "C-c s") 'rmoo-upload-buffer-directly)
(define-key map (kbd "<f7>") 'rmoo-upload-buffer-directly)
(define-key map (kbd "C-c ]") 'rmoo-destroy)
map))
(defun rmoo-list-mode ()
"A major mode for editing MOO lists and arbitrary text.
Commands:
\\{rmoo-list-mode-map}"
(interactive)
(let ((world rmoo-world-here))
(setq mode-name (concat "RMOO-List@" (symbol-name world)))
(setq major-mode 'rmoo-list-mode)
(use-local-map (copy-keymap rmoo-list-mode-map))
(run-hooks rmoo-list-mode-hooks)))