From 293bf29e490611eb156a2691de8a31ea6909a839 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Thu, 12 Nov 2020 18:33:04 +0100 Subject: [PATCH] Added templates for yasnippet --- config/.local/share/ranger/bookmarks | 2 +- emacs/.emacs.d/snippets/c-mode/template | 9 +++++++++ emacs/.emacs.d/snippets/makefile-mode/template | 4 ++++ emacs/.emacs.d/snippets/org-mode/template | 6 ++++++ emacs/.emacs.d/snippets/sh-mode/bang | 6 ------ emacs/.emacs.d/snippets/sh-mode/template | 6 ++++++ 6 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 emacs/.emacs.d/snippets/c-mode/template create mode 100644 emacs/.emacs.d/snippets/org-mode/template delete mode 100644 emacs/.emacs.d/snippets/sh-mode/bang create mode 100644 emacs/.emacs.d/snippets/sh-mode/template diff --git a/config/.local/share/ranger/bookmarks b/config/.local/share/ranger/bookmarks index 5fedd5b..73b4c2a 100644 --- a/config/.local/share/ranger/bookmarks +++ b/config/.local/share/ranger/bookmarks @@ -9,5 +9,5 @@ t:/home/tuan/Templates w:/home/tuan/workspace_l/Projects k:/home/tuan/Documents/Uni/Studium/2017&2018 Wintersemester/Rechnerstrukturen und Betriebssysteme [4,0]/Rechnerstrukturen q:/home/tuan/.nextcloud/Quick Drop -':/home/tuan/.dotfiles/vim/.vim +':/home/tuan/.dotfiles/emacs/.emacs.d/snippets e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon diff --git a/emacs/.emacs.d/snippets/c-mode/template b/emacs/.emacs.d/snippets/c-mode/template new file mode 100644 index 0000000..387a78d --- /dev/null +++ b/emacs/.emacs.d/snippets/c-mode/template @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: template +# key: templat +# -- +#include + +int main(int argc, char *argv[]){ + $0 +} \ No newline at end of file diff --git a/emacs/.emacs.d/snippets/makefile-mode/template b/emacs/.emacs.d/snippets/makefile-mode/template index 478c59f..6bfb295 100644 --- a/emacs/.emacs.d/snippets/makefile-mode/template +++ b/emacs/.emacs.d/snippets/makefile-mode/template @@ -1,3 +1,7 @@ +# -*- mode: snippet -*- +# name: template +# key: template +# -- CC = gcc CFLAGS = RM = rm diff --git a/emacs/.emacs.d/snippets/org-mode/template b/emacs/.emacs.d/snippets/org-mode/template new file mode 100644 index 0000000..ebef253 --- /dev/null +++ b/emacs/.emacs.d/snippets/org-mode/template @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: template +# key: template +# -- +#+TITLE: $0 +#+SETUPFILE: $HOME/Templates/Org-Mode/setupfile.org \ No newline at end of file diff --git a/emacs/.emacs.d/snippets/sh-mode/bang b/emacs/.emacs.d/snippets/sh-mode/bang deleted file mode 100644 index 5e11f0e..0000000 --- a/emacs/.emacs.d/snippets/sh-mode/bang +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: bang -# key: ! -# -- -#!/usr/bin/env bash -$0 \ No newline at end of file diff --git a/emacs/.emacs.d/snippets/sh-mode/template b/emacs/.emacs.d/snippets/sh-mode/template new file mode 100644 index 0000000..689fd38 --- /dev/null +++ b/emacs/.emacs.d/snippets/sh-mode/template @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: template +# key: template +# -- +#!/bin/bash +$0 \ No newline at end of file