Added auctex and yasnippets
This commit is contained in:
5
.emacs.d/snippets/c-lang-common/fopen
Normal file
5
.emacs.d/snippets/c-lang-common/fopen
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: FILE *fp = fopen(..., ...);
|
||||
# key: fopen
|
||||
# --
|
||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
||||
9
.emacs.d/snippets/c-lang-common/ifdef
Normal file
9
.emacs.d/snippets/c-lang-common/ifdef
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: ifdef
|
||||
# key: ifdef
|
||||
# --
|
||||
#ifdef ${1:MACRO}
|
||||
|
||||
$0
|
||||
|
||||
#endif // $1
|
||||
5
.emacs.d/snippets/c-lang-common/inc
Normal file
5
.emacs.d/snippets/c-lang-common/inc
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name : #include <...>
|
||||
# key : incs
|
||||
# --
|
||||
#include <$1>
|
||||
5
.emacs.d/snippets/c-lang-common/inc.1
Normal file
5
.emacs.d/snippets/c-lang-common/inc.1
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name : #include "..."
|
||||
# key : incl
|
||||
# --
|
||||
#include "$1"
|
||||
9
.emacs.d/snippets/c-lang-common/main
Normal file
9
.emacs.d/snippets/c-lang-common/main
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: main
|
||||
# key: main
|
||||
# --
|
||||
int main(${1:int argc, char *argv[]})
|
||||
{
|
||||
$0
|
||||
return 0;
|
||||
}
|
||||
6
.emacs.d/snippets/c-lang-common/math
Normal file
6
.emacs.d/snippets/c-lang-common/math
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: math
|
||||
# key: math
|
||||
# --
|
||||
#include <math.h>
|
||||
$0
|
||||
9
.emacs.d/snippets/c-lang-common/once
Normal file
9
.emacs.d/snippets/c-lang-common/once
Normal file
@@ -0,0 +1,9 @@
|
||||
#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 */
|
||||
5
.emacs.d/snippets/c-lang-common/typedef
Normal file
5
.emacs.d/snippets/c-lang-common/typedef
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: typedef
|
||||
# key: typedef
|
||||
# --
|
||||
typedef ${1:type} ${2:alias};
|
||||
Reference in New Issue
Block a user