Changes between Initial Version and Version 1 of EmacsInterface


Ignore:
Timestamp:
Feb 14, 2012, 11:29:27 AM (13 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EmacsInterface

    v1 v1  
     1= Basic usage in Emacs/XEmacs = 
     2 
     3The GNU Emacs and the XEmacs text editors are supported user interfaces. 
     4At least version 22 is required for Emacs and version 21 is required for XEmacs. 
     5 
     6Refactoring is performed by an Erlang server process, which stores analysed 
     7source files in a database. This server is started automatically by the (X)Emacs 
     8interface, and it should be stopped manually before leaving (X)Emacs. Only 
     9those files that are loaded into the database are subjects to refactoring. 
     10 
     11== Configuration in XEmacs/Emacs. == 
     12 
     13=== Loading !RefactorErl.===  
     14First of all, you need to load the !RefactorErl library 
     15into XEmacs or into Emacs. You can do this by placing the following two 
     16lines into your {{{.xemacs/init.el}}} le in the former or into your {{{.emacs}}} 
     17file in the latter case (you can copy&paste it from the  
     18{{{ README.TXT}}} file from the 
     19!RefactorErl package): 
     20 
     21{{{ 
     22(add-to-list 'load-path 
     23"/path-to-root-dir/lib/referl_ui/emacs") 
     24(require 'refactorerl) 
     25}}} 
     26 
     27If you don't know where your {{{.emacs}}} file is, the easiest way to locate it is 
     28to start Emacs and type {{{C-x C-f ~/.emacs}}} - this always opens the right file. 
     29Similar in XEmacs type {{{C-x C-f ~/.xemacs/init.el}}} 
     30 
     31If you don't know what {{{C-x C-f}}} is, then you should read the (X)Emacs 
     32tutorial to get more familiar with the environment - you can access it by starting 
     33(X)Emacs and pressing the keys {{{Ctrl+h}}}, and then {{{t}}}.[[BR]] 
     34 
     35  
     36=== Basic settings. === 
     37 
     38Before you can run !RefactorErl, you must make some settings 
     39through the Emacs customization system. 
     40 
     41Type {{{M-x customize-group}}}, then enter {{{refactorerl}}} as the name of the group. 
     42Here you can change the following settings: 
     43 
     44 * {{{Refactorerl Base Path}}}: you must enter the full path to the root directory of the tool. Strictly speaking, this is the only required customization, every other setting has a sensible default. 
     45 
     46 * {{{Refactorerl Erlang Runtime}}}: if your {{{PATH}}} setting doesn't contain the Erlang commands, then you should enter the full path to the erl command here. 
     47 
     48 * {{{Refactorerl Data Dir}}}: you can change the location of the database here. 
     49 
     50 * {{{Refactorerl Server Type}}}: if you want to experiment with the command line interface of the tool, you should set this to "Managed server with shell access". This feature requires the standard Erlang editing mode. 
     51 
     52... 
     53