]> code.delx.au - gnu-emacs-elpa/blobdiff - README.rst
Doc fix and small tweaks
[gnu-emacs-elpa] / README.rst
index 39263e698bb1f7ced5fc0b2dd6a2079a70f2755f..4306c637c90eff439d6aadf5784b6760405e85a9 100644 (file)
@@ -1,25 +1,39 @@
-====================
- Kill Things Easily
-====================
+=============================
+ Kill Things Easily in Emacs
+=============================
+Commands ``easy-kill`` and ``easy-mark`` let users kill/mark things at
+point easily.
 
-Provide a more powerful command ``easy-kill`` for key ``M-w``.
-
-``M-w`` tries in order:
+``easy-kill`` is a drop-in replacement for ``kill-ring-save``. It
+tries in order:
 
 #. current region if active
-#. url at point
+#. url at point (snarf char properties ``help-echo``, ``shr-url``,
+   ``w3m-href-anchor`` etc.)
 #. email at point
 #. current line
 
-Keys (customisable) immediately following ``M-w``:
+Keys (customisable) immediately following ``easy-kill``:
 
 #. ``w`` -> word at point
 #. ``s`` -> sexp at point
 #. ``f`` -> file at point
 #. ``l`` -> list at point
 #. ``d`` -> defun at point
+#. ``b`` -> ``buffer-file-name`` or ``default-directory``
+#. ``@`` -> append selection to previous kill
+#. ``C-w`` -> kill selection
+#. ``+``, ``-`` and ``0..9`` -> expand/shrink selection
+#. ``SPC`` -> turn selection into an active region
+#. ``C-g`` -> abort
+
+The following `screenshot <http://i.imgur.com/8TNgPly.png>`_ shows
+``M-w l`` in action:
 
-More features are planned.
+.. figure:: http://i.imgur.com/8TNgPly.png
+   :target: http://i.imgur.com/8TNgPly.png
+   :alt: ``M-w l``
 
 To Use
 ~~~~~~
@@ -27,4 +41,17 @@ To Use
 ::
 
    (require 'easy-kill)
-   (global-set-key "\M-w" 'easy-kill)
+   (global-set-key [remap kill-ring-save] 'easy-kill)
+
+Extensions
+~~~~~~~~~~
+
+New things can be defined by following package ``thingatpt.el``'s
+convention, or by defining new functions named like
+``easy-kill-on-THING-NAME``. See ``easy-kill-on-buffer-file-name`` and
+``easy-kill-on-url`` for examples.
+
+Bugs
+~~~~
+
+https://github.com/leoliu/easy-kill/issues