Added auctex and yasnippets

This commit is contained in:
TuDatTr
2017-12-21 17:29:29 +01:00
parent 2c6b54e8cc
commit 6cf4b23ee2
1717 changed files with 140403 additions and 9 deletions

View File

@@ -0,0 +1 @@
prog-mode

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: call
# key: call
# --
GenServer.call(${1:__MODULE__}, $0)

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: case
# key: case
# --
case $1 do
$0
end

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: cast
# key: cast
# --
GenServer.cast(${1:__MODULE__}, $0)

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: cond
# key: cond
# --
cond do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: def
# key: def
# --
def ${1:function}${2:(${3:args})} do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: defmacro
# key: defmacro
# --
defmacro $1 do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: defmacrop
# key: defmacrop
# --
defmacrop $1 do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: defmodule
# key: defmodule
# --
defmodule $1 do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: defp
# key: defp
# --
defp $1 do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: do
# key: do
# --
do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: doc
# key: doc
# --
@doc """
$0
"""

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: fn
# key: fn
# --
fn ${1:x} -> $1$0 end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for
# key: for
# --
for ${2:x} <- ${1:enum} do
$2$0
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: hcall
# key: hcall
# --
def handle_call($1, _from, state) do
reply = $0
{:reply, reply, state}
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: hcast
# key: hcast
# --
def handle_cast($1, state) do
$0
{:noreply, state}
end

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: hinfo
# key: hinfo
# --
def handle_info($1, state) do
$0
{:noreply, state}
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: if
# key: if
# --
if ${1:condition} do
$0
end

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: if-else
# key: ife
# --
if ${1:condition} do
$2
else
$3
end

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: io
# key: io
# --
IO.puts("$1")$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: iop
# key: iop
# --
IO.puts("$1 #{inspect $1}")$0

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: moduledoc
# key: mdoc
# --
@moduledoc """
$0
"""

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: pry
# key: pry
# group: debug
# --
require IEx; IEx.pry

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: test
# key: test
# --
test "$1" do
$0
end

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: unless
# key: unless
# --
unless ${1:condition} do
$0
end