feat(emacs): add

This commit is contained in:
Pavel Korytov 2020-12-30 12:28:30 +03:00
commit a3f3fd784e
16 changed files with 2887 additions and 0 deletions

21
.emacs.d/custom.el Normal file
View file

@ -0,0 +1,21 @@
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(css-indent-offset 2)
'(custom-safe-themes
'("c83c095dd01cde64b631fb0fe5980587deec3834dc55144a6e78ff91ebc80b19" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" "e074be1c799b509f52870ee596a5977b519f6d269455b84ed998666cf6fc802a" default))
'(dired-recursive-copies 'always)
'(js-indent-level 2)
'(org-agenda-files
'("~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
'(sgml-basic-offset 2)
'(wakatime-cli-path "/usr/bin/wakatime")
'(wakatime-python-bin nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

1491
.emacs.d/emacs.org Normal file

File diff suppressed because it is too large Load diff

1236
.emacs.d/init.el Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: defdoc
# key: defdoc
# --
\documentclass[a4paper, 14pt]{extarticle}
$0
\begin{document}
\end{document}

View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: equation*
# key: eq*
# --
\begin{equation*}
$1
\end{equation*}
$0

View file

@ -0,0 +1,35 @@
# -*- mode: snippet -*-
# name: etutitle
# key: etutitle
# --
\begin{titlepage}
\centering
{\bfseries
\uppercase{
Минобрнауки России \\\\
Санкт-Петербургский государственный \\\\
Электротехнический университет \\\\
\enquote{ЛЭТИ} им. В.И.Ульянова (Ленина)\\\\
}
Кафедра ${1:МО ЭВМ}
\vspace{\fill}
\uppercase{${2:Отчёт}} \\\\
по ${3:лабораторной работе} ${4:№1} \\\\
по дисциплине \enquote{$5} \\\\
Тема: $6
}
\vspace{\fill}
\begin{tabularx}{0.8\textwidth}{l X c r}
Студент гр. 6304 & & \underline{\hspace{3cm}} & Корытов П.В.\\\\
Преподаватель & & \underline{\hspace{3cm}} & $7
\end{tabularx}
\vspace{1cm}
Санкт-Петербург \\\\
\the\year{}
\end{titlepage}
$0

View file

@ -0,0 +1,9 @@
# key: flst
# name: float listing
# --
\begin{listing}[h]
\frame${1:text}file[fontsize=\small]{$2}
\caption{$3}%
\label{lst:$4}
\end{listing}
$0

View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: floatbarrier
# key: fb
# --
\FloatBarrier{}
$0

View file

@ -0,0 +1,11 @@
# key: lfig
# name: lfig
# --
\begin{figure}[h]
\centering
\includegraphics[${1:width=\textwidth}]{${2:`(shell-command-to-string "find -name \"*.png\" -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | head -n 1 | awk '{ printf $5 }'
")`}}
\caption{$3}%
\label{fig:${4:label}}
\end{figure}
$0

View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: lorem
# key: lorem
# --
\lipsum[1]{} % TODO
$0

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: lst-input
# key: lsti
# --
\begin{listing}[h]
\frame${1:text}file[fontsize=\small]{$2}
\caption{$3}%
\label{lst:$4}
\end{listing}
$0

View file

@ -0,0 +1,15 @@
# -*- mode: snippet -*-
# name: org-latex-table
# key: otab
# --
\begin{table}[h]
% BEGIN RECEIVE ORGTBL $1
% END RECEIVE ORGTBL $1
\caption{$2}%
\label{tab:$1}
\end{table}
\begin{comment}
#+ORGTBL: SEND $1 orgtbl-to-latex :booktabs t
$0
\end{comment}

View file

@ -0,0 +1,4 @@
# key: i
# name: textit
# --
\textit{$1} $0

View file

@ -0,0 +1,4 @@
# key: tt
# name: texttt
# --
\texttt{$1} $0

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: рис
# key: рис
# --
рис.~\ref{fig:$1}$0

View file

@ -0,0 +1,17 @@
# -*- mode: snippet -*-
# name: org-mode-python-template
# key: orgpy
# --
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://gongzhitaao.org/orgcss/org.css"/>
#+PROPERTY: header-args:python :session *$1*
#+PROPERTY: header-args:python+ :exports both
#+PROPERTY: header-args:python+ :tangle yes
#+PROPERTY: header-args:python+ :async yes
#+begin_src elisp :exports none
(setq-local org-image-actual-width '(1024))
(setq-local org-html-htmlize-output-type 'css)
(setq-local org-latex-listings 'minted)
#+end_src
$0