home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 198_01 / cug.doc < prev    next >
Text File  |  1990-01-23  |  4KB  |  100 lines

  1. < Distribution Disk >
  2.  
  3. The distribution disk is set to be compiled with Turbo C compiler
  4. under MSDOS. You may have to change the settings defined in "estruct.h".
  5. The following instructs you how to compile the programs under UNIX/XENIX
  6. systems.
  7.  
  8. < Installtion of MicroEmacs under UNIX >
  9.  
  10. To install MicroEmacs ver. 3.9. under UNIX operating system, you must: 
  11.  
  12. 1.    Convert all filenames to lowercase letters. 
  13.     
  14.     Files on the disk you have received may have all uppercase names. This
  15.     has happened when the files were transfered from MSDOS to XENIX. This 
  16.     can be easily fixed by simply using "mv" command or creating a shell
  17.     script that makes use of "tr" command. This step is necessary when 
  18.     makefile is processed.
  19.  
  20. 2.     Remove control characters in files.
  21.  
  22.     Some files on the disk contain control characters such as ^M or ^Z.
  23.     This will cause the compiler to terminate its process. You need to 
  24.     remove them using "vi" or some text filter.
  25.  
  26. 3.     Change the preprocessor control lines in file "estruct.h".
  27.  
  28.     Estruct.h defines preprocessor directives for various kinds of machines,
  29.     operating systems and compilers. You need to customize them for your 
  30.     machine before the compilation. First, in the Machine/OS definitions,
  31.     set #define USG 1, note that all the rest in the section shoud be 0.
  32.     Similarly, in the Compiler definitions, set #define UNIX 1, and 
  33.     finally, in the Terminal Output definitions, set #define TERMCAP 1.
  34.      
  35. 4.    Edit "makefile"
  36.  
  37.     Makefile supplied with the souce codes contain filenames which are
  38.     not necessary to compiling the program under UNIX. Those file mostly
  39.     define display functions specific to a certain type of terminal. You
  40.     need to delete them from the list because you are going to use "termcap"
  41.     library.
  42.     
  43.     A makefile for compiling MicroEmacs under UNIX is a file named
  44.     "unix.mk".
  45.  
  46. 5.     Compile MicroEmacs.
  47.  
  48.     Everything is ready. Just type "make -f unix.mk". The machine will 
  49.     automatically create the excecutable image of Emacs for you.
  50.  
  51. * About Keyboard setting
  52.  
  53.     If you are not satisfied with the original keyboard setting or
  54.     you want to use special keys like arrow keys. Here is the way to solve
  55.     the problem.
  56.  
  57. 1.     You can assign the command to any key you want inside the editor.
  58.     Type M-K, you will get a message "bind-to-key" under the status line.
  59.     Type a command name you want to assign.(The command name can be 
  60.     obtained in "efunc.h".)
  61.     And then, hit a return key. If the command name doesn't exist, 
  62.     the editor gives you an error message. After hitting the return
  63.     key, now hit a key to which you want to assign the command. 
  64.     Note that this key-setting will last until you exit the editor.
  65.  
  66. 2.     To make the key-setting permanent, you need to create a start-up
  67.     file that contains macros and call it everytime you run emacs.
  68.     For example, a start-up file "start.up" contains the following
  69.     macros. (This is the key-settings for arrow keys on IBM.)
  70.  
  71.     bind-to-key previous-line M-A
  72.     bind-to-key next-line M-B
  73.     bind-to-key forward-character M-C
  74.     bind-to-key backward-character M-D
  75.  
  76.     When you run emacs, type "emacs @start.up". (Creating a shell
  77.     script for that is a good idea.) 
  78.     This solution is the most suitable when the end-users have various 
  79.     kinds of terminals. You will be able to create a shell script such that
  80.     UNIX detects the terminal type and selects the appropriate start-up 
  81.     file.
  82.     
  83. 3.     The third solution is to edit "ebind.h" and customize it for your
  84.     favorite keyboard-setting. You need to recompile the program after
  85.     your customization. This solution is not as flexible as the second
  86.     one. You will get the first screen, however, a little quicker.  
  87.  
  88.  
  89.  
  90.  
  91.     
  92.  
  93.  
  94.     
  95.     
  96.  
  97.     
  98.     
  99.  
  100.