Added file associations for tex, py and cpp. Also only kept tex, py and cpp snippets

clean_emacs
TuDatTr 2018-01-04 16:56:03 +01:00
parent 99a6303bd0
commit 910f175a82
No known key found for this signature in database
GPG Key ID: 6B2AC5D2CAECE06A
1053 changed files with 5 additions and 7124 deletions

View File

@ -1 +0,0 @@
(nil)

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: project
# key: proj
# --
<project name="${1:test}" default="${2:compile}" basedir="${3:.}">
$0
</project>

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: property
# key: prop
# --
<property name="${1:name}" value="${2:value}" />
$0

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: target
# key: target
# --
<target name="${1:compile}" ${2:other}>
$0
</target>

View File

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

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: comment
# --
(*
$0
*)

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: considering
# --
considering $1
$0
end considering

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: considering-application-responses
# --
considering application responses
$0
end considering

View File

@ -1,4 +0,0 @@
# -*- mode: snippet -*-
# name: display-dialog
# --
display dialog "$0"

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: if
# --
if $1 then
$2
else
$0
end if

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: ignoring
# --
ignoring $1
$0
end ignoring

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: ignoring-application-responses
# --
ignoring application responses
$0
end ignoring

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: on
# --
on $1
$0
end $1

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat
# --
repeat $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat-until
# --
repeat until $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat-while
# --
repeat while $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat-with
# --
repeat with $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: tell-application
# --
tell application "$1"
$0
end tell

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: tell-application-to-activate
# --
tell application "$1" to activate
$0

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: try
# --
try
$1
on error $2
$0
end try

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: using-terms-from-application
# --
using terms from application "$1"
$0
end using terms from

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: with-timeout-of-seconds
# --
with timeout of $1 seconds
$0
end timeout

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: with-transaction
# --
with transaction
$0
end transaction

View File

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

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: comment
# --
(*
$0
*)

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: considering
# --
considering $1
$0
end considering

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: considering-application-responses
# --
considering application responses
$0
end considering

View File

@ -1,4 +0,0 @@
# -*- mode: snippet -*-
# name: display-dialog
# --
display dialog "$0"

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: if
# --
if $1 then
$2
else
$0
end if

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: ignoring
# --
ignoring $1
$0
end ignoring

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: ignoring-application-responses
# --
ignoring application responses
$0
end ignoring

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: on
# --
on $1
$0
end $1

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat
# --
repeat $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat-until
# --
repeat until $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat-while
# --
repeat while $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: repeat-with
# --
repeat with $1
$0
end repeat

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: tell-application
# --
tell application "$1"
$0
end tell

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: tell-application-to-activate
# --
tell application "$1" to activate
$0

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: try
# --
try
$1
on error $2
$0
end try

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: using-terms-from-application
# --
using terms from application "$1"
$0
end using terms from

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: with-timeout-of-seconds
# --
with timeout of $1 seconds
$0
end timeout

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: with-transaction
# --
with transaction
$0
end transaction

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: FILE *fp = fopen(..., ...);
# key: fopen
# --
FILE *${fp} = fopen(${"file"}, "${r}");

View File

@ -1,9 +0,0 @@
# -*- mode: snippet -*-
# name: ifdef
# key: ifdef
# --
#ifdef ${1:MACRO}
$0
#endif // $1

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name : #include <...>
# key : incs
# --
#include <$1>

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name : #include "..."
# key : incl
# --
#include "$1"

View File

@ -1,9 +0,0 @@
# -*- mode: snippet -*-
# name: main
# key: main
# --
int main(${1:int argc, char *argv[]})
{
$0
return 0;
}

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: math
# key: math
# --
#include <math.h>
$0

View File

@ -1,9 +0,0 @@
#name : #ifndef XXX; #define XXX; #endif
# key: once
# --
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H}
#define $1
$0
#endif /* $1 */

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: typedef
# key: typedef
# --
typedef ${1:type} ${2:alias};

View File

@ -1,2 +0,0 @@
cc-mode
c-lang-common

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: assert
# key: ass
# --
#include <assert.h>
$0

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: compile
# key: compile
# --
// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: define
# key: d
# --
#define $0

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: malloc
# key: malloc
# --
malloc(sizeof($1)${2: * ${3:3}});
$0

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: packed
# key: packed
# --
__attribute__((__packed__))$0

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: printf
# key: pr
# --
printf("${1:format string}"${2: ,a0,a1});

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: stdio
# key: io
# --
#include <stdio.h>

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: stdlib
# key: std
# --
#include <stdlib.h>

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: string
# key: str
# --
#include <string.h>

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: union
# key: union
# --
typedef union {
$0
} ${1:name};

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: unistd
# key: uni
# --
#include <unistd.h>

View File

@ -1,9 +0,0 @@
# -*- mode: snippet -*-
# name : case : {...}
# key: case
# expand-env: ((yas-also-auto-indent-first-line t))
# --
case ${2:constexpr}:${3: \{}
$0
break;
${3:$(if (string-match "\{" yas-text) "\}" "")}

View File

@ -1,7 +0,0 @@
#name : do { ... } while (...)
# key: do
# --
do
{
$0
} while (${1:condition});

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name : else { ... }
# key: else
# --
else${1: {
$0
}}

View File

@ -1,13 +0,0 @@
# -*- mode: snippet -*-
#cotributor: Henrique Jung <henriquenj@gmail.com>
#name: File description
#key: \file
#group: doxygen
# --
/**
* \file ${1:`(file-name-nondirectory(buffer-file-name))`}
* \brief ${2:A Documented file.}
${3:*
* ${4:Detailed description}
*
}*/

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: for
# key: for
# --
for (${1:i = 0}; ${2:i < N}; ${3:++i}) {
$0
}

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# contributor: York Zhao
# name: for_n
# key: forn
# --
for (${1:auto }${2:i} = ${3:0}; $2 < ${4:MAXIMUM}; ++$2) {
$0
}

View File

@ -1,14 +0,0 @@
# -*- mode: snippet -*-
#cotributor: Henrique Jung <henriquenj@gmail.com>
#name: Function description
#key: \brief
#group: doxygen
# --
/**
* \brief ${1:function description}
${2:*
* ${3:Detailed description}
*
}* \param ${4:param}
* \return ${5:return type}
*/

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name : if (...) { ... }
# key: if
# --
if (${1:condition}) ${2:{
$0
}}

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
#cotributor: Henrique Jung <henriquenj@gmail.com>
#name: Member description
#key: !<
#group: doxygen
# --
/*!< ${1:Detailed description after the member} */

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: printf
# key: printf
# --
printf("${1:%s}\\n"${1:$(if (string-match "%" yas-text) ", " "\);")
}$2${1:$(if (string-match "%" yas-text) "\);" "")}

View File

@ -1,7 +0,0 @@
#name : struct ... { ... }
# key: struct
# --
struct ${1:name}
{
$0
};

View File

@ -1,11 +0,0 @@
# -*- mode: snippet -*-
# name : switch (...) { case : ... default: ...}
# key: switch
# --
switch (${1:expr}) {
case ${2:constexpr}:${3: \{}
$0
break;
${3:$(if (string-match "\{" yas-text) "\}\n" "")}default:
break;
}

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: ternary
# key: ?
# --
(${1:cond}) ? ${2:then} : ${3:else};

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: while
# key: while
# --
while (${1:condition}) {
$0
}

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: action
# key: action
# --
action: ${0:nothing}

View File

@ -1,14 +0,0 @@
# -*- mode: snippet -*-
# name: bash
# key: bash
# --
bash "${1:install something}" do
user "${2:root}"
cwd "${3:/tmp}"
creates "${4:maybe}"
code <<-EOH
STATUS=0
$0 || STATUS=1
exit $STATUS
EOH
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: cookbook_file
# key: cookbook_file
# --
cookbook_file "${1:/tmp/file}" do
owner "${2:root}"
group "${3:root}"
mode "${4:0644}"
source "${5:my-filename}"
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: cron
# key: cron
# --
cron "${1:name}" do
hour "${2:5}"
minute "${3:0}"
command "${4:/bin/true}"
end

View File

@ -1,16 +0,0 @@
# -*- mode: snippet -*-
# name: cronf
# key: cronf
# --
cron "${1:name}" do
hour "${2:*}"
minute "${3:*}"
day "${4:*}"
weekday "${6:*}"
command "${7:/bin/true}"
user "${8:root}"
mailto "${9:root@example.com}"
path "${10:/bin:/usr/bin}"
home "${11:/tmp}"
shell "${12:/bin/bash}"
end

View File

@ -1,18 +0,0 @@
# -*- mode: snippet -*-
# name: deploy
# key: deploy
# --
deploy "/my/deploy/dir" do
repo "git@github.com/whoami/provideroject"
revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234"
user "deploy_ninja"
enable_submodules true
migrate true
migration_command "rake db:migrate"
environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo"
shallow_clone true
action :deploy # or :rollback
restart_command "touch tmp/restart.txt"
git_ssh_wrapper "wrap-ssh4git.sh"
scm_provider Chef::Provider::Git # is the default, for svn: Chefhef::Provider::Subversion
end

View File

@ -1,11 +0,0 @@
# -*- mode: snippet -*-
# name: directory
# key: directory
# --
directory "${1:name}" do
owner "root"
group "root"
mode "0755"
action :create
end

View File

@ -1,13 +0,0 @@
# -*- mode: snippet -*-
# name: directoryf
# key: directoryf
# --
directory "${1:name}" do
owner "$create{2:root}"
group "${3:root}"
mode "${4:0755}"
path "${5:name}"
recursive ${6:false}
action :${7:create}
end

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: env
# key: env
# --
env "${1:RAILS_ENV}" do
value "${2:production}"
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: execute
# key: execute
# --
execute "${1:name}" do
command "${2:ls -la}"
creates "${3:/tmp/something}"
action :${4:run}
end

View File

@ -1,18 +0,0 @@
# -*- mode: snippet -*-
# name: executef
# key: executef
# --
execute "${1:name}" do
command "${2:ls -la}"
creates "$ls{3:/tmp/something}"
cwd "${4:/tmp}"
environment ({${5:'HOME' => '/home/myhome'}})
user "${6:root}"
group "${7:root}"
path "${8:['/opt/bin','/opt/sbin']}"
timeout ${9:3600}
returns ${10:0}
umask "${11:022}umask"
action :${12:run}
end

View File

@ -1,11 +0,0 @@
# -*- mode: snippet -*-
# name: file
# key: file
# --
file "${1:name}" do
owner "root"
group "root"
mode "0644"
action :create
end

View File

@ -1,14 +0,0 @@
# -*- mode: snippet -*-
# name: filef
# key: filef
# --
file "${1:name}" do
path "${3:path}"
backup ${4:5}
owner "${5:root}"
group "${6:root}"
mode "${7:0644}"
content "${8:content here}"
action :${2:create}
end

View File

@ -1,11 +0,0 @@
# -*- mode: snippet -*-
# name: git
# key: git
# --
git "${1:/home/user/deployment}" do
repository "${2:git@github.com:gitsite/deploymentployment.git}"
reference "${3:master}"
user "${4:user}"
group "${5:templateest}"
action :sync
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: group
# key: group
# --
group "${1:name}" do
gid ${2:999}
members [${3:'paco','vicente'}]
action :create
end

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: http_request
# key: http_request
# --
http_request "${1:some message}" do
url "${2:http://example.com/check_in}"
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: http_requestp
# key: http_requestp
# --
http_request "${1:posting data}" do
action :post
url "${2:http://example.com/check_in}"
message ${3::some => "data"}
headers (${4:\{"AUTHORIZATION" => authorization\}})
end

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: ignore_failure
# key: ignore_failure
# --
ignore_failure ${0:true}

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: inc
# key: inc
# --
include_recipe "${1:example::recipe}"

View File

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: link
# key: link
# --
link "${1:/tmp/passwd}" do
to "${2:/etc/passwd}"
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: linkf
# key: linkf
# --
link "${1:/tmp/passwd}" do
to "${2:/etc/passwd}"
link_type :${3:symbolic}
owner "${4:root}"
group "${5:root}"
end

View File

@ -1,5 +0,0 @@
# -*- mode: snippet -*-
# name: log
# key: log
# --
log ("${1:your string to log}") { level :${2:debug} }

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: machine
# key: machine
# --
machine "${1:name}" do
role '${2:web}'
recipe '${3:web}'
chef_environment '${4:_default}'
converge true
end

View File

@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: meta
# key: meta
# --
maintainer "${1:YOUR_COMPANY_NAME}"
maintainer_email "${2:YOUR_EMAIL}"
license "${3:All rights reserved}"
description "${4:Installs/Configures example}"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "${5:0.0.1}"

Some files were not shown because too many files have changed in this diff Show More