home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34exe.zip
/
mutt
/
misc
/
myme.mut
< prev
next >
Wrap
Lisp/Scheme
|
1995-01-14
|
2KB
|
65 lines
;; myme.mut : My prefered additions to the base ME
;; To compile this file: "mc2 myme"
;; C Durland Public Domain
(include me.mh)
(defun MAIN
{
(HELP 0) ;; I don't need no steenking help
(modify-syntax-entry "w-") ;; a dash is part of a word
;; My prefered bindings:
(bind-to-key "calculator" "C-c")
(bind-to-key "scroll-up" "M-z")
(bind-to-key "scroll-down" "C-z")
(bind-to-key "spawn-shell" "C-_")
(bind-to-key "undo" 'M-\')
(bind-to-key "iturn-on-undo" 'M-+')
(bind-to-key "twiddle-left-of-dot" 'C-t')
(bind-to-key "" "C-w") ;; remove that binding
(bind-to-key "cut-region" "M-C-w")
(auto-mode-list TRUE
'Re[0-9]+$' "mail" ;; mailx: "/tmp/Re<digits>"
'\.letter' "mail" ;; mail from tin: "~/.letter"
'\.article' "mail" ;; posting from tin: "~/.article"
'rnmail[0-9]+$' "mail" ;; mail from notes: "/tmp/rnmail<digits>"
'nfa[0-9]+$' "mail" ;; notes: "/tmp/nfa<digits>"
'dts.+[0-9]+$' "mail" ;; dts
)
(if (pgm-exists "command-line-done") ;; ME2.5
(if (== 1 (argc)) ;; no files on command line
{
(ask-user)(visit-file) ;; ask to edit a file
(command-line-done TRUE)
}))
})
(defun
print-region
{
(int bag-id)
(bag-id (create-bag))
(append-to-bag bag-id APPEND-REGION)
(OS-filter
(concat "lp "
(if (arg-flag) (ask "lp flags = ") "-o2")
" ")
bag-id)
(free-bag bag-id)
}
)
(defun
cmd-line-empty
{
(ask-user)(visit-file) ;; ask to edit a file
}
bake { (compile "bake") }
)