File tree Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 1+ # ##########################################################################
2+ # TextMate Snippets #
3+ # ##########################################################################
4+ snippet def
5+ (define ${1: (${2: name-and-args } ) }
6+ ${0: body } )
7+ endsnippet
8+ # vim:ft=snippets:
Original file line number Diff line number Diff line change 11snippet +
22 (+ ${1}
3- ${0} )
3+ ${0} )
44
55snippet -
66 (- ${1}
7- ${0} )
7+ ${0} )
88
99snippet /
1010 (/ ${1}
11- ${0} )
11+ ${0} )
1212
1313snippet *
1414 (* ${1}
15- ${0} )
15+ ${0} )
1616
1717# Definition
1818snippet def
19- (define (${1: name } )
20- ${0: definition } )
19+ (define ${1: name }
20+ ${0} )
21+
22+ snippet deff
23+ (define (${1: name-and-args } )
24+ ${0: body } )
2125
2226# Definition with lambda
2327snippet defl
2428 (define ${1: name }
25- (lambda (x) (${0: definition } )))
29+ (lambda (${2 : args } ) (${0: body } )))
2630
2731# Condition
2832snippet cond
2933 (cond ((${1: predicate } ) (${2: action } ))
30- ((${3: predicate } ) (${0: action } )))
34+ ((${3: predicate } ) (${0: action } )))
3135
3236# If statement
3337snippet if
3438 (if (${1: predicate } )
35- (${2: true-action } )
36- (${0: false-action } ))
39+ (${2: true-action } )
40+ (${0: false-action } ))
You can’t perform that action at this time.
0 commit comments