C++ for polybars spotify playbutton control instead of python, just to play around C++ a little bit.

This commit is contained in:
Tuan-Dat Tran
2018-03-27 02:04:19 +02:00
parent 0fadd81c68
commit 0212d21755
9 changed files with 126 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: cerr
# key: err
# --
cerr << $0;

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: cin
# key: cin
# --
cin >> $0;

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: York Zhao <gtdplatform@gmail.com>
# name: cout
# key: cout
# --
`(progn (goto-char (point-min)) (unless (re-search-forward
"^using\\s-+namespace std;" nil 'no-errer) "std::"))
`cout << $0${1: << "${2:\n}"};

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: fori
# key: fori
# --
for (${1:auto }${2:it} = ${3:var}.begin(); $2 != $3.end(); ++$2) {
$0
}

View File

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