Skip to content

Commit

Permalink
Different Python Emacs commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrusius committed May 13, 2014
1 parent cfef7d5 commit 31c9e47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions emacs.py
Expand Up @@ -207,9 +207,10 @@ class EmacsGlobalMappings(MappingRule):
class EmacsPythonMappings(MappingRule):
"""Emacs mappings for python coding"""
mapping = {
'(new|create) python class': Key('a-colon')+Text('(python-skeleton-class)')+Key('enter'),
'(new|create) python function': Text('def ():')+Key('left:3')
}
'python class': Key('a-colon')+Text('(python-skeleton-class)')+Key('enter'),
'python (function|method)': Text('def ():')+Key('left:3'),
'python if': Text('if :')+Key('left'),
}

context = AppContext(executable="emacs")
grammar = Grammar("GNU Emacs", context=context)
Expand Down

0 comments on commit 31c9e47

Please sign in to comment.