Permalink
Browse files

now works correctly with the kill-ring

  • Loading branch information...
1 parent fb3b907 commit e96b269e72c34254e848811eca1633a1013ab55d @dustinlacewell dustinlacewell committed with habnabit Aug 24, 2012
Showing with 13 additions and 1 deletion.
  1. +1 −1 base-keymap.json
  2. +12 −0 emax_commands.py
View
@@ -182,7 +182,7 @@
"args": {
"forward": true
},
- "command": "delete_word"
+ "command": "emax_delete_word"
},
{
"keys": ["meta+backspace"],
View
@@ -272,6 +272,18 @@ def run(self, edit):
)
set_clipboard(kill_ring.kill_ring.top())
+class EmaxDeleteWord(EmaxHelper):
+ """
+ Mimic 'delete-word' also known as 'M-d'.
+ """
+
+ def run(self, edit, **kwargs):
+ self.deactivate_mark()
+ self.view.run_command(
+ "delete_word",
+ kwargs
+ )
+ set_clipboard(kill_ring.kill_ring.top())
class EmaxYank(EmaxHelper):

0 comments on commit e96b269

Please sign in to comment.