mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 11:13:04 +03:00
feat(emacs): add
This commit is contained in:
commit
a3f3fd784e
16 changed files with 2887 additions and 0 deletions
21
.emacs.d/custom.el
Normal file
21
.emacs.d/custom.el
Normal 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
1491
.emacs.d/emacs.org
Normal file
File diff suppressed because it is too large
Load diff
1236
.emacs.d/init.el
Normal file
1236
.emacs.d/init.el
Normal file
File diff suppressed because it is too large
Load diff
9
.emacs.d/snippets/latex-mode/defdoc
Normal file
9
.emacs.d/snippets/latex-mode/defdoc
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: defdoc
|
||||
# key: defdoc
|
||||
# --
|
||||
\documentclass[a4paper, 14pt]{extarticle}
|
||||
$0
|
||||
\begin{document}
|
||||
|
||||
\end{document}
|
||||
8
.emacs.d/snippets/latex-mode/equation*
Normal file
8
.emacs.d/snippets/latex-mode/equation*
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: equation*
|
||||
# key: eq*
|
||||
# --
|
||||
\begin{equation*}
|
||||
$1
|
||||
\end{equation*}
|
||||
$0
|
||||
35
.emacs.d/snippets/latex-mode/etutitle
Normal file
35
.emacs.d/snippets/latex-mode/etutitle
Normal 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
|
||||
9
.emacs.d/snippets/latex-mode/float listing
Normal file
9
.emacs.d/snippets/latex-mode/float listing
Normal 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
|
||||
6
.emacs.d/snippets/latex-mode/floatbarrier
Normal file
6
.emacs.d/snippets/latex-mode/floatbarrier
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: floatbarrier
|
||||
# key: fb
|
||||
# --
|
||||
\FloatBarrier{}
|
||||
$0
|
||||
11
.emacs.d/snippets/latex-mode/lfig
Normal file
11
.emacs.d/snippets/latex-mode/lfig
Normal 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
|
||||
6
.emacs.d/snippets/latex-mode/lorem
Normal file
6
.emacs.d/snippets/latex-mode/lorem
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: lorem
|
||||
# key: lorem
|
||||
# --
|
||||
\lipsum[1]{} % TODO
|
||||
$0
|
||||
10
.emacs.d/snippets/latex-mode/lst-input
Normal file
10
.emacs.d/snippets/latex-mode/lst-input
Normal 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
|
||||
15
.emacs.d/snippets/latex-mode/org-latex-table
Normal file
15
.emacs.d/snippets/latex-mode/org-latex-table
Normal 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}
|
||||
4
.emacs.d/snippets/latex-mode/textit
Normal file
4
.emacs.d/snippets/latex-mode/textit
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# key: i
|
||||
# name: textit
|
||||
# --
|
||||
\textit{$1} $0
|
||||
4
.emacs.d/snippets/latex-mode/texttt
Normal file
4
.emacs.d/snippets/latex-mode/texttt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# key: tt
|
||||
# name: texttt
|
||||
# --
|
||||
\texttt{$1} $0
|
||||
5
.emacs.d/snippets/latex-mode/рис
Normal file
5
.emacs.d/snippets/latex-mode/рис
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: рис
|
||||
# key: рис
|
||||
# --
|
||||
рис.~\ref{fig:$1}$0
|
||||
17
.emacs.d/snippets/org-mode/org-mode-python-template
Normal file
17
.emacs.d/snippets/org-mode/org-mode-python-template
Normal 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
|
||||
Loading…
Add table
Reference in a new issue