Anonymous avatar Anonymous committed 8a157c5

docs: updated README.txt

Comments (0)

Files changed (1)

   (require 'pymacs)
   (pymacs-load "ropemacs" "rope-")
 
-Rope registers its local keys using ``python-mode`` hook.  If you
-don't want to use rope with ``python-mode`` you can add
-``rope-register-local-keys`` lisp function to some other hook.
+Note that rope and ropemacs should be in your ``PYTHONPATH`` for this
+to work.
+
+Loading Lazily
+--------------
 
 If you want to load ropemacs only when you really need it, you can use
-a function like this instead of that::
+a function like this in your ``~/.emacs``::
 
   (defun load-ropemacs ()
     "Load pymacs and ropemacs"
     ;; Automatically save project python buffers before refactorings
     (setq ropemacs-confirm-saving 'nil)
   )
+  (global-set-key "\C-xpl" 'load-ropemacs)
 
-And execute ``load-ropemacs`` whenever you want to use ropemacs.  Also
-if you don't want to install rope library and ropemacs you can extract
+And execute ``load-ropemacs`` (or use ``C-x p l``) whenever you want
+to use ropemacs.
+
+
+Not Installing
+--------------
+
+If you don't want to install rope library and ropemacs you can extract
 them somewhere and add these lines to your ``.emacs``::
 
   ;; Add this before loading pymacs if you haven't installed rope and ropemacs
                            "/path/to/ropemacs"))
 
 
+Python Mode Local Keys
+----------------------
+
+Rope registers its local keys using ``python-mode`` hook (this hook is
+available if you are using emacs' ``python.el`` or XEmacs'
+``python-mode.el``).  If you want to activate rope local keys in some
+other major mode, you can use ``rope-register-local-keys`` lisp
+function.
+
+
 Getting Started
 ===============
 
 given, rope will insert the common prefix for that many of the first
 proposals.
 
-``rope-lucky-assist`` command (``M-?``) does not ask, anything;
+``rope-lucky-assist`` command (``M-?``) does not ask anything;
 instead, it inserts the first proposal.  By prefixing it, you can
 choose which proposal to insert.  ``C-u 1 M-?`` uses the second
 propsal, for instance.
 can be used to set many configs at the same time.  After selecting
 this command from dialog base prompt, you are asked to enter a string.
 
-``batchset`` strings can give value to configs in two ways.  The
+``batchset`` strings can set the value of configs in two ways.  The
 single line form is like this::
 
   name1 value1
 C-c r v           rope-move
 C-c r x           rope-restructure
 C-c r u           rope-use-function
+C-c r f           rope-introduce-factory
 C-c r 1 r         rope-rename-current-module
 C-c r 1 v         rope-move-current-module
 C-c r 1 p         rope-module-to-package
 global names for each project.  It updates the cache only when modules
 are changed; if you want to cache all your modules at once, use
 ``rope-generate-autoimport-cache``.  It will cache all of the modules
-inside a project plus those whose names are listed in
+inside the project plus those whose names are listed in
 ``ropemacs-autoimport-modules`` list::
 
   # add the name of modules you want to autoimport
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.