home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
CONTRIB.ZIP
/
KEN.MIN
< prev
next >
Wrap
Text File
|
1989-01-11
|
3KB
|
181 lines
Ken Van Wyk's preferences (This is out of date and no longer works, but you can
get some good ideas from it)
Name:U:backward-tab
[*]#(sp,<<<<<<<<)[*]
Name:U:center-line
[*]#(pm,1)#(sm,0)
#(sp,^)
#(U:kill-spaces)
#(sp,$)
#(U:kill-spaces)
#(F:set-mark)
#(sp,##(Fmark))
#(ds,column,##(lv,c))
#(sp,^)
#(Floop,(#(is, )),##(//,##(--,##(F-fill-column),##(column)),2))
#(sp,0)#(pm)#(es,column)
[*]
Name:U:compile-file
[*]
#(Uset-mode-by-ext,#(Fextens-only,#(buffer-filename.##(ba,-1))))
#(==,##(Ucompiler),,(
#(an,No compiler set - use standard lowercase filename extensions)
),(
#(F:write-current-file)
#(ex,#(env.COMSPEC),#(env.SWITCHAR)C ##(Ucompiler) #(buffer-filename.##(ba,-1)))
#(rd)
))
[*]
Name:U:kill-to-beginning-of-line
[*]
#(==,arg1,,(
#(==,##(rm,<),(
),(
#(Fkill,<)
),(
#(Fkill,^)
))
),(
#(pm,1)
#(sm,0)
#(Floop,(#(sp,^<)),arg1)
#(Fkill,0)
#(pm)
))[*]
Name:U:kill-to-bof
[*]
#(F:set-mark)
#(sp,[)
#(F:kill-region)
[*]
Name:U:kill-to-eof
[*]
#(F:set-mark)
#(sp,])
#(F:kill-region)
[*]
Name:U:screen-down
[*]
#(Floop,(#(sp,^<)),##(--,##(lv,r),1))
#(F:previous-line)
[*]
Name:U:screen-up
[*]
#(Floop,(#(sp,$>)),##(--,##(lv,b),##(lv,r)))
#(F:next-line)
[*]
Name:Ufind-non-blank
[*]#(==,##(rm,arg1),( ),
(#(sp,arg1)#(SELF,arg1,arg2)),
(#(==,##(rm,arg1),( ),
(#(sp,arg1)#(SELF,arg1,arg2)),
(#(==,arg2,crlf,
(#(==,##(rm,arg1),(
), (#(sp,arg1)#(SELF,arg1,arg2)),
))
))
))
)
[*]
Name:Ufind-non-char
[*]#(==,##(rm,arg2),arg1,
(#(sp,arg2)#(SELF,arg1,arg2)),)
[*]
Name:Ukill-chars
Kill repeated characters.
[*]#(Ufind-non-char,arg1,>)
#(F:set-mark)
#(Ufind-non-char,arg1,<)
#(F:kill-region)
[*]
Name:Umark-whitespace
Find the end of the whitespace, set a mark on it, and go to the beginning.
[*]
#(Ufind-non-blank,>,arg1)
#(F:set-mark)
#(Ufind-non-blank,<,arg1)
[*]
Name:Uset-mode-by-ext
Determine what kind of file this is, and set the mode and compiler accordingly.
[*]
#(Fin-minor-mode,C-Mode,(#(Fexit-minor-mode,C-Mode)))
#(Fin-minor-mode,Fill,(#(Fexit-minor-mode,Fill)))
#(ds,Pcompiler,)
#(ds,Pcompiler-switches,)
#(Fcase,arg1,
(doc,(
#(Fenter-minor-mode,Fill)
)),
(txt,(
#(Fenter-minor-mode,Fill)
)),
(mss,(
#(Fenter-minor-mode,Fill)
)),
(pas,(
#(Fenter-minor-mode,C-Mode)
#(ds,Pcompiler,turbo)
)),
(c,(
#(Fenter-minor-mode,C-Mode)
#(ds,Pcompiler,MSC)
)),
(else,)
)
#(Fcase,arg1,
(for,(
#(Fenter-minor-mode,C-Mode)
#(ds,Pcompiler,watfor87)
)),
(bat,(
#(Fenter-minor-mode,C-Mode)
#(ds,Pcompiler, )
)),
(asm,(
#(Fenter-minor-mode,C-Mode)
#(ds,Pcompiler,masm)
#(ds,Pcompiler-switches,;)
)),
(else,)
)
[*]
Name:Utest-ext
Set the file mode to whatever extension the file currently has.
[*]#(Uset-mode-by-ext,#(Fextens-only,#(buffer-filename.##(ba,-1))))[*]
Name:Uword-case
[*]
#(sp,>-{+)
#(F:set-mark)
#(sp,})
#(arg1)
[*]