| 52 | == !RefactorErl mode == |
| 53 | |
| 54 | Refactoring functionality is provided through an (X)Emacs minor mode1 that |
| 55 | can be turned on using the command {{{M-x refactorerl-mode}}}. When this mode |
| 56 | is active, there is a status display in the mode line that shows one of the following |
| 57 | values: |
| 58 | |
| 59 | * {{{Refact}}} means !RefactorErl mode is active, and the file can be refactored. |
| 60 | |
| 61 | * {{{Refact:off}}} means !RefactorErl mode is active, but the file is not in the database, so it cannot be refactored. |
| 62 | |
| 63 | * {{{Refact:err}}} means the file has some errors. |
| 64 | |
| 65 | * {{{Refact:???}}} means that !RefactorErl mode is active, but there is no information available about the file. Normally this is shown only during processing, use the "update status" command if it doesn't go away. |
| 66 | |
| 67 | When !RefactorErl mode is active, functionality can be accessed through |
| 68 | either the "Refactor" menu or keyboard shortcuts. Key sequences start with |
| 69 | {{{C-c C-r}}}, and a complete list is given by {{{C-c C-r C-h}}}. |
| 70 | |
| 71 | As a standard (X)Emacs feature, help on !RefactorErl keyboard shortcuts |
| 72 | is available by typing {{{C-h k}}} followed by the keyboard command itself. For |
| 73 | example, {{{C-h k C-c C-r r f}}} provides help on the rename function refactoring. |
| 74 | The same works with menus: selecting a menu item after typing {{{C-h k}}} gives |
| 75 | help on the menu item. |
| 76 | |
| 77 | == The "Refactor" menu == |
| 78 | |
| 79 | === Server sub-menu === |
| 80 | |
| 81 | While working with Erlang files the sever process of the !RefactorErl can be |
| 82 | stopped or can be restarted if it is required. The refactoring server can be |
| 83 | stopped by selecting the "Stop server" menu item from the "!Refactor/Server" menu |
| 84 | or typing the shortcut {{{C-c C-r Q}}}. The !RefactorErl server can be started (or |
| 85 | restarted) by selecting the menu item "Start server" from the "!Refactor/Server" menu or |
| 86 | typing the {{{C-c C-r R}}} shortcut. |
| 87 | |
| 88 | |
| 89 | === Files sub-menu === |
| 90 | |