more ocaml snippets
This commit is contained in:
parent
b1e2c1a76c
commit
cf4a923563
5 changed files with 19 additions and 1 deletions
7
tuareg-mode/for
Normal file
7
tuareg-mode/for
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: for
|
||||
# key: for
|
||||
# --
|
||||
for ${1:cond} do
|
||||
$0
|
||||
done
|
5
tuareg-mode/list_comprehension
Normal file
5
tuareg-mode/list_comprehension
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: list_comprehension
|
||||
# key: l
|
||||
# --
|
||||
[? $1 | $0 ?]
|
|
@ -2,4 +2,4 @@
|
|||
# name: printf
|
||||
# key: pr
|
||||
# --
|
||||
Printf.printf ${1:"string"} ${2:vals};;
|
||||
Printf.printf "${1:string}" ${2:vals};;
|
5
tuareg-mode/val
Normal file
5
tuareg-mode/val
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: val
|
||||
# key: val
|
||||
# --
|
||||
val ${1:fun}: $0
|
1
typerex-mode
Symbolic link
1
typerex-mode
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/andrea/Emacs-configuration/yasnippet-snippets/tuareg-mode
|
Loading…
Reference in a new issue