home *** CD-ROM | disk | FTP | other *** search
- The following changes to the MicroEmacs 3.10c (and possibly newer)
- initialization file, emacs.rc will load the ctags macro file automatically
- for editing a C or Fortran file.
-
- These changes will also prevent the Function Keys window from popping up when
- Emacs is run. It may still be popped with <F5>.
-
- *** emacs.rc Sun Mar 19 17:30:24 1989
- --- sdm.rc Sat Feb 24 16:25:16 1990
- ***************
- *** 1,3
- ; EMACS.RC: Standard micro Startup program
- ; for MicroEMACS 3.9d and above
- ; (C)opyright 1987 by Daniel M Lawrence
-
- --- 1,9 -----
- + ; SDM.RC, a modified version of emacs.rc
- + ; 24 Feb 90 Add levels (like an outliner) for C and Fortran.
- + ; 06 Nov 89 Use my Fortran.cmd, instead of Fortran.rc .
- + ; 04 May 89 for MicroEmacs 3.10, don't put up the menu.
- + ; load ctags.cmd for C or Fortran files.
- + ;
- ; EMACS.RC: Standard micro Startup program
- ; for MicroEMACS 3.9d and above
- ; (C)opyright 1987 by Daniel M Lawrence
- ***************
- *** 158,164
- ; Set up auto CMODE
-
- 20 store-macro
- ! set %rctmp &sin $cfname "."
- !if &equ %rctmp 0
- !return
- !endif
-
- --- 164,171 -----
- ; Set up auto CMODE
-
- 20 store-macro
- ! set %extmp &right $cfname 5 ;-- we want the rightmost "."
- ! set %rctmp &sindex %extmp "."
- !if &equ %rctmp 0
- !return
- !endif
- ***************
- *** 162,168
- !if &equ %rctmp 0
- !return
- !endif
- ! set %rctmp &mid $cfname &add %rctmp 1 5
- !if &or &seq %rctmp "c" &seq %rctmp "h"
- add-mode "cmode"
- !endif
-
- --- 169,175 -----
- !if &equ %rctmp 0
- !return
- !endif
- ! set %rctmp &lower &mid %extmp &add %rctmp 1 3
- !if &or &seq %rctmp "c" &seq %rctmp "h"
- add-mode "cmode"
- !if ¬ &sequ &bind M-FNV [key-to-tag]
- ***************
- *** 165,170
- set %rctmp &mid $cfname &add %rctmp 1 5
- !if &or &seq %rctmp "c" &seq %rctmp "h"
- add-mode "cmode"
- !endif
- !if &seq %rctmp "mss"
- add-mode "wrap"
-
- --- 172,182 -----
- set %rctmp &lower &mid %extmp &add %rctmp 1 3
- !if &or &seq %rctmp "c" &seq %rctmp "h"
- add-mode "cmode"
- + !if ¬ &sequ &bind M-FNV [key-to-tag]
- + execute-file ctags.cmd
- + set %ctags_exact TRUE
- + execute-file levels.cmd
- + !endif
- !endif
- !if &or &or &seq %rctmp "for" &seq %rctmp "ftn" &seq %rctmp "f77"
- !if ¬ &sequ $wraphook execute-macro-33
- ***************
- *** 166,171
- !if &or &seq %rctmp "c" &seq %rctmp "h"
- add-mode "cmode"
- !endif
- !if &seq %rctmp "mss"
- add-mode "wrap"
- !endif
-
- --- 178,192 -----
- execute-file levels.cmd
- !endif
- !endif
- + !if &or &or &seq %rctmp "for" &seq %rctmp "ftn" &seq %rctmp "f77"
- + !if ¬ &sequ $wraphook execute-macro-33
- + execute-file fortran.cmd
- + execute-file levels_f.cmd
- + !endif
- + !if ¬ &sequ &bind M-FNV [key-to-tag]
- + execute-file ctags.cmd
- + !endif
- + !endif
- !if &seq %rctmp "mss"
- add-mode "wrap"
- !endif
- ***************
- *** 234,240
- ; bring up the function key window
-
- 1 split-current-window
- ! select-buffer "Function Keys"
- insert-string "f1 search-> f2 <-search █ MicroEMACS: Text Editor~n"
- insert-string "f3 hunt-> f4 <-hunt █ ~n"
- insert-string "f5 fkeys f6 help █ Available function key Pages include:~n"
-
- --- 255,261 -----
- ; bring up the function key window
-
- 1 split-current-window
- ! 1 select-buffer "Function Keys"
- insert-string "f1 search-> f2 <-search █ MicroEMACS: Text Editor~n"
- insert-string "f3 hunt-> f4 <-hunt █ ~n"
- insert-string "f5 fkeys f6 help █ Available function key Pages include:~n"
- ***************
- *** 241,246
- insert-string "f7 nxt wind f8 pg[ ] █ WORD BOX EMACS PASCAL C COBOL~n"
- insert-string "f9 save f10 exit █ [use the f8 key to load Pages]~n"
- unmark-buffer
- delete-window
- set %rcfkeys FALSE
- execute-macro-1
-
- --- 262,268 -----
- insert-string "f7 nxt wind f8 pg[ ] █ WORD BOX EMACS PASCAL C COBOL~n"
- insert-string "f9 save f10 exit █ [use the f8 key to load Pages]~n"
- unmark-buffer
- + add-mode view
- delete-window
- set %rcfkeys FALSE
- ; execute-macro-1
- ***************
- *** 243,247
- unmark-buffer
- delete-window
- set %rcfkeys FALSE
- ! execute-macro-1
- set $discmd TRUE
-
- --- 265,269 -----
- add-mode view
- delete-window
- set %rcfkeys FALSE
- ! ; execute-macro-1
- set $discmd TRUE
-