Added screenshot filenamesEmacs:- Added yasnippet- Added company- Added flycheck- Added htmlize for reveal.js- Changed tabbing- Fixed org-insert-structure-template shortcut- display line numbers in c/cpp-mode

This commit is contained in:
TuDatTr
2020-12-14 04:57:42 +01:00
parent 293bf29e49
commit 78945a969d
15 changed files with 166 additions and 28 deletions

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: template
# key: template
# --
#include <stdio>
int main(int argc, char *argv[]){
$0
}

View File

@@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# name: template
# key: templat
# key: template
# --
#include <stdio.h>

View File

@@ -1,16 +0,0 @@
# -*- mode: snippet -*-
# name: template
# key: template
# --
CC = gcc
CFLAGS =
RM = rm
TARGET = $0
all: ${TARGET}
${TARGET}: ${TARGET}.c
${CC} ${CFLAGS} -o ${TARGET} ${TARGET}.c
clean:
${RM} ${TARGET}

View File

@@ -0,0 +1,19 @@
# -*- mode: snippet -*-
# name: templatec
# key: templatec
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# --
CC = gcc
SRC = \$(wildcard *.c)
OBJ = \$(SRC:.c=.o)
CFLAGS =
RM = rm
TARGET = $1
all: \$(TARGET)
\$(TARGET): \$(OBJ)
\$(CC) \$(CFLAGS) -o \$@ \$^
clean:
\$(RM) \$(TARGET) \$(OBJ)

View File

@@ -0,0 +1,19 @@
# -*- mode: snippet -*-
# name: templatecxx
# key: templatecxx
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# --
CXX = g++
SRC = \$(wildcard *.cpp)
OBJ = \$(SRC:.cpp=.o)
CFLAGS =
RM = rm
TARGET = $1
all: \$(TARGET)
\$(TARGET): \$(OBJ)
\$(CXX) \$(CFLAGS) -o \$@ \$^
clean:
\$(RM) \$(TARGET) \$(OBJ)

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: leftarrow
# key: <-
# --
\leftarrow{}$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: rightarrow
# key: ->
# --
\rightarrow{}$0

View File

@@ -3,4 +3,4 @@
# key: template
# --
#+TITLE: $0
#+SETUPFILE: $HOME/Templates/Org-Mode/setupfile.org
#+SETUPFILE: ~/Templates/Org-Mode/setupfile.org

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: template
# key: template
# --
if __name__ == '__main__':
$0