From f28c0f281c585a59342b9434c5a385c882c10063 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Fri, 29 Dec 2017 01:46:15 +0100 Subject: [PATCH] Added function to next and previous section in latex-mode --- .config/termite/config | 2 +- .emacs | 12 ++++++ .../elpy/__pycache__/__main__.cpython-36.pyc | Bin 674 -> 674 bytes .../elpy/__pycache__/auto_pep8.cpython-36.pyc | Bin 581 -> 581 bytes .../elpy/__pycache__/compat.cpython-36.pyc | Bin 838 -> 838 bytes .../__pycache__/jedibackend.cpython-36.pyc | Bin 8949 -> 8949 bytes .../__pycache__/pydocutils.cpython-36.pyc | Bin 2718 -> 2718 bytes .../elpy/__pycache__/rpc.cpython-36.pyc | Bin 4713 -> 4713 bytes .../elpy/__pycache__/server.cpython-36.pyc | Bin 8577 -> 8577 bytes .../elpy/__pycache__/yapfutil.cpython-36.pyc | Bin 1038 -> 1038 bytes .emacs.d/snippets/c++-mode/.yas-parents | 1 - .emacs.d/snippets/c++-mode/.yas-setup.elc | Bin 0 -> 921 bytes .emacs.d/snippets/latex-mode/fsrtable | 7 ++-- .emacs.d/snippets/latex-mode/fsrtemplate | 37 +++++++++++++++--- .gitignore | 1 + 15 files changed, 49 insertions(+), 11 deletions(-) create mode 100644 .emacs.d/snippets/c++-mode/.yas-setup.elc diff --git a/.config/termite/config b/.config/termite/config index ec4489c..eac2e21 100644 --- a/.config/termite/config +++ b/.config/termite/config @@ -48,7 +48,7 @@ hyperlinks = true #foreground_bold = #ffffff # 20% background transparency (requires a compositor) -background = rgba(63, 63, 63, 0.8) +background = rgba(63, 63, 63, 0.4) # If unset, will reverse foreground and background #highlight = #2f2f2f diff --git a/.emacs b/.emacs index 3f15eef..172d91d 100644 --- a/.emacs +++ b/.emacs @@ -49,6 +49,13 @@ ((= 16 opt) "s")))) (insert (shell-command-to-string (concat "xsel -o -" opt)))))) +;; Latex +(fset 'next-section + (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("\\sec " 0 "%d")) arg))) +(fset 'prev-section + (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("\\sec " 0 "%d")) arg))) + +;; Theme (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -67,6 +74,7 @@ '(font-latex-bold-face ((t (:foreground "brightcyan")))) '(font-latex-sedate-face ((t (:foreground "brightcyan")))) '(font-lock-comment-face ((t (:foreground "color-142")))) + '(font-lock-doc-face ((t (:foreground "color-242")))) '(font-lock-keyword-face ((t (:foreground "brightcyan" :weight bold)))) '(font-lock-type-face ((t (:foreground "green"))))) @@ -83,6 +91,10 @@ (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil) +(eval-after-load 'latex + '(define-key LaTeX-mode-map (kbd "C-c n") 'next-section)) +(eval-after-load 'latex + '(define-key LaTeX-mode-map (kbd "C-c p") 'prev-section)) ;; Tex To PDF (require 'tex) (TeX-global-PDF-mode t) diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/__main__.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/__main__.cpython-36.pyc index 808777d5fde76900e0e1c6694b4d47c809d87ddb..70306728deff9a5e50727ad323e8e8f424730fd7 100644 GIT binary patch delta 16 XcmZ3)x`>tCn3tE!H_K)t`)novAvgo| delta 16 XcmZ3)x`>tCn3tDp?q92o?6a8wCeQ@d diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/auto_pep8.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/auto_pep8.cpython-36.pyc index f98bdaab8ea823017e264d0b04e061fbdaa196b7..d2233f79e3507db02ac521309041ea05c8985b28 100644 GIT binary patch delta 16 XcmX@ga+HPLn3tE!H_K)tyB!k%Bzyzh delta 16 XcmX@ga+HPLn3tDp-e0SY>~>55DjNj8 diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/compat.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/compat.cpython-36.pyc index dbb2b952ebd7325af55ebfed0648f524b5f803cc..a0229c5f90c1106817f492129998a01b495bb0ac 100644 GIT binary patch delta 16 XcmX@cc8rbPn3tE!H_K)tyFD`iB-I1t delta 16 XcmX@cc8rbPn3tDp-e0SY?Dot6Ds%+K diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/jedibackend.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/jedibackend.cpython-36.pyc index ba19db5db54fd76fbedaed16614416610c1b9e6b..3e254dce0ac3f5b50b718bde05339e89f0ec4a97 100644 GIT binary patch delta 16 XcmezB`qh=)n3tE!H_K)t`#U87GPnhf delta 16 XcmezB`qh=)n3tDp-e0SY?C+ESI9CR6 diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/pydocutils.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/pydocutils.cpython-36.pyc index 918ab7b218ab18db7397d3800d3306b04d5c4352..6c8e76aeea447cf89139d8c8e70f6a6be75b8f42 100644 GIT binary patch delta 16 XcmbOyI!~0{n3tE!H_K)t`*bb`6iZGAjjo diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/server.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/server.cpython-36.pyc index 37b3d4879b44e53e84bac5608de5c76d3c38845f..f7ce843545c7c562b0a1030a2023f8c0e604513c 100644 GIT binary patch delta 16 XcmZp4Zggfh=H=z`&9d3ZUZn^CBmV>~ delta 16 XcmZp4Zggfh=H=y@_t$D8dzB&pDV_xn diff --git a/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/yapfutil.cpython-36.pyc b/.emacs.d/elpa/elpy-20171220.504/elpy/__pycache__/yapfutil.cpython-36.pyc index f6b5ae56f705dffaefd133b7d32d0b0674fcf988..6813d7bceda265f1b5fcade4fcbf3d8dc1067435 100644 GIT binary patch delta 16 XcmeC<=;L5F=H=z`&9d3Z&dve=9u5OR delta 16 XcmeC<=;L5F=H=y@_t$D8J39*iBdr7@ diff --git a/.emacs.d/snippets/c++-mode/.yas-parents b/.emacs.d/snippets/c++-mode/.yas-parents index b269357..ce9828b 100644 --- a/.emacs.d/snippets/c++-mode/.yas-parents +++ b/.emacs.d/snippets/c++-mode/.yas-parents @@ -1,2 +1 @@ cc-mode -c-lang-common diff --git a/.emacs.d/snippets/c++-mode/.yas-setup.elc b/.emacs.d/snippets/c++-mode/.yas-setup.elc new file mode 100644 index 0000000000000000000000000000000000000000..6cbc4c711c338b02184196659144078fc02f35b8 GIT binary patch literal 921 zcmbtSO^?$s5bY7=4{&5ik($yZY7$_(8zF(h9x8D_bZ>1DUVB2UP3&Sjt;(-w;#R97 z5SR7A%6OjVeZ=MM=j!=rGz!YHgi3ci*`n};RB+odZefqcO06J&n-*#2dk5(nU~LO} z=VT{;F-HKK2EKXMNDDR1f!?A8aa6369E9f98L58Qn7YO~U_zjPN1p6D&9DEOAvDcU z+5y+fF#`9lP8M{cl8>uuxdh%Y!?+`nv8QKBfYrd6f_sEkvp-1AW-K5xtwaN^Az)sd zcqxP@twF$3R}ch|!JoY}2$LhTO73>(ros3_wphT5bn^ykZGZu9nWb=8M?U2P!uL;T ziS9f27=+H>I(y=3@p&$MMg&X+73@Ya@X7Oc}$B?G!WEup^nrM3^V#*9J zx#@QsbiGkXJxxt>kQN7SxM;lyB7rq)C9~dF!e_I@J4n2P@j9aSF@YKQiS6%)&v5{;6*L}3|1 a2=9rkW_{}(s}>!W;dBf6*~?Y#z5E6wN){mi literal 0 HcmV?d00001 diff --git a/.emacs.d/snippets/latex-mode/fsrtable b/.emacs.d/snippets/latex-mode/fsrtable index b35f271..db8385c 100644 --- a/.emacs.d/snippets/latex-mode/fsrtable +++ b/.emacs.d/snippets/latex-mode/fsrtable @@ -2,10 +2,9 @@ # name: fsrtable # key: fsrtable # -- - -Abstimmung +\\\\ \begin{tabular}{ccc} \toprule Ja & Nein & Enthaltung \\\\\midrule -3 & 1 & 9 \\\\\bottomrule -\end{tabularx} +0 & 0 & 0 \\\\\bottomrule +\end{tabular} \ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/fsrtemplate b/.emacs.d/snippets/latex-mode/fsrtemplate index e6a328e..32753ea 100644 --- a/.emacs.d/snippets/latex-mode/fsrtemplate +++ b/.emacs.d/snippets/latex-mode/fsrtemplate @@ -47,21 +47,48 @@ \subsection{Eröffnung der Sitzung / Feststellung der Beschlussfähigkeit} \begin{itemize} -\item anwesende Fachschaftsräte: +\item anwesende Fachschaftsräte: % Nach dem FSR 2017/18 \begin{itemize} - \item + \item Jens-Rene Giesen + \item Nicolas Hasselhuhn + \item Ella Pohl + \item Johannes Waltmann + \item Mady Reimers + \item Annika Bendel + \item J\"oran Hesse + \item Marcel Zutter % Marecel Zutter + \item Hilal Bektas + \item Sebastian D\"omckes + \item Marvin Prochzka + \item Tobias Braun \end{itemize} \item abwesende Fachschaftsräte: \begin{itemize} - \item + \item Niemand \end{itemize} \item anwesende Helfer: \begin{itemize} - \item + \item Sarah Delfing + \item Roman Heger + \item Christoph Anders + \item Jana Schmitz + \item Tobias Vennemann + \item Trutz Beckerpape + \item Markus Heikamp + \item Tim-Dennis Slotta + \item Tim Karbe + \item David Steimel + \item Tobias Stottrop + \item Stefan Lewin + \item Jan Sellerbeck + \end{itemize} + +\item anwesende G\"aste: + \begin{itemize} + \item B\"arserker \heart \end{itemize} - \item Die Beschlussfähigkeit wurde festgestellt. \end{itemize} diff --git a/.gitignore b/.gitignore index d3a3935..7aeddb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ \#*\# *.log +fsrtemplate \ No newline at end of file