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:
9
emacs/.emacs.d/snippets/c++-mode/template
Normal file
9
emacs/.emacs.d/snippets/c++-mode/template
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: template
|
||||
# key: template
|
||||
# --
|
||||
#include <stdio>
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
$0
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: template
|
||||
# key: templat
|
||||
# key: template
|
||||
# --
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@@ -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}
|
||||
19
emacs/.emacs.d/snippets/makefile-mode/templatec
Normal file
19
emacs/.emacs.d/snippets/makefile-mode/templatec
Normal 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)
|
||||
19
emacs/.emacs.d/snippets/makefile-mode/templatecxx
Normal file
19
emacs/.emacs.d/snippets/makefile-mode/templatecxx
Normal 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)
|
||||
5
emacs/.emacs.d/snippets/org-mode/leftarrow
Normal file
5
emacs/.emacs.d/snippets/org-mode/leftarrow
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: leftarrow
|
||||
# key: <-
|
||||
# --
|
||||
\leftarrow{}$0
|
||||
5
emacs/.emacs.d/snippets/org-mode/rightarrow
Normal file
5
emacs/.emacs.d/snippets/org-mode/rightarrow
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: rightarrow
|
||||
# key: ->
|
||||
# --
|
||||
\rightarrow{}$0
|
||||
@@ -3,4 +3,4 @@
|
||||
# key: template
|
||||
# --
|
||||
#+TITLE: $0
|
||||
#+SETUPFILE: $HOME/Templates/Org-Mode/setupfile.org
|
||||
#+SETUPFILE: ~/Templates/Org-Mode/setupfile.org
|
||||
6
emacs/.emacs.d/snippets/python-mode/template
Normal file
6
emacs/.emacs.d/snippets/python-mode/template
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: template
|
||||
# key: template
|
||||
# --
|
||||
if __name__ == '__main__':
|
||||
$0
|
||||
Reference in New Issue
Block a user