From 574f4e961787d4cfcd27b32223d573ec2d7aeb1f Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 12 Jan 2021 23:09:05 +0100 Subject: [PATCH] Add include snippet --- .config/emacs/snippets/c++-mode/include | 4 ++-- .config/emacs/snippets/c++-mode/include-external | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .config/emacs/snippets/c++-mode/include-external diff --git a/.config/emacs/snippets/c++-mode/include b/.config/emacs/snippets/c++-mode/include index 167bc28..ceb3b00 100644 --- a/.config/emacs/snippets/c++-mode/include +++ b/.config/emacs/snippets/c++-mode/include @@ -1,5 +1,5 @@ # -*- mode: snippet -*- # name: include -# key: i +# key: inc # -- -#include $0 \ No newline at end of file +#include "$1"$0 \ No newline at end of file diff --git a/.config/emacs/snippets/c++-mode/include-external b/.config/emacs/snippets/c++-mode/include-external new file mode 100644 index 0000000..2972325 --- /dev/null +++ b/.config/emacs/snippets/c++-mode/include-external @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: include-external +# key: inc< +# -- +#include <$1>$0 \ No newline at end of file