Reinstall of emacs w/ auctex, yasnippet and elpy, as well as snippets for my job...

clean_emacs
TuDatTr 2017-12-23 01:36:42 +01:00
parent 6cf4b23ee2
commit e10267e095
21 changed files with 334 additions and 83 deletions

72
.emacs
View File

@ -1,5 +1,6 @@
(package-initialize)
;; Package Repos
(when (>= emacs-major-version 24)
(require 'package)
(add-to-list
@ -7,24 +8,10 @@
;; '("melpa" . "http://stable.melpa.org/packages/") ; many packages won't show if using stable
'("melpa" . "http://melpa.milkbox.net/packages/")
'("elpy" . "http://jorgenschaefer.github.io/packages/")
))
(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.
'(custom-enabled-themes (quote (sanityinc-solarized-dark)))
'(custom-safe-themes
(quote
("4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" "66881e95c0eda61d34aa7f08ebacf03319d37fe202d68ecf6a1dbfd49d664bc3" default)))
'(inhibit-startup-screen t)
'(package-selected-packages
(quote
(auctex color-theme-sanityinc-solarized elpy forest-blue-theme)))
'(pyvenv-activate "~/.virtualenv/default")
'(tex-run-command "pdflatex")
'(texinfo-tex-command "pdflatex"))
)
)
;; Copy and Paste
;; https://github.com/Boruch-Baum
(defun my-copy-to-xclipboard(arg)
(interactive "P")
@ -62,25 +49,52 @@
((= 16 opt) "s"))))
(insert (shell-command-to-string (concat "xsel -o -" opt))))))
(global-set-key (kbd "C-c C-w") 'my-cut-to-xclipboard)
(global-set-key (kbd "C-c M-w") 'my-copy-to-xclipboard)
(global-set-key (kbd "C-c M-y") 'my-paste-from-xclipboard)
(load-theme 'forest-blue t)
(elpy-enable)
(setq TeX-PDF-mode t)
(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.
'(custom-safe-themes
(quote
("66881e95c0eda61d34aa7f08ebacf03319d37fe202d68ecf6a1dbfd49d664bc3" default)))
'(global-font-lock-mode t)
'(package-selected-packages (quote (elpy auctex forest-blue-theme))))
(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.
'(diff-context ((t (:foreground "brightblack"))))
'(highlight-indentation-face ((t (:inherit nil :background "brightblack")))))
'(font-latex-bold-face ((t (:foreground "brightcyan"))))
'(font-latex-sedate-face ((t (:foreground "brightcyan"))))
'(font-lock-comment-face ((t (:foreground "color-142"))))
'(font-lock-keyword-face ((t (:foreground "brightcyan" :weight bold))))
'(font-lock-type-face ((t (:foreground "green")))))
;; Startup
;; Load Theme
(load-theme 'forest-blue t)
;; Python
(elpy-enable)
(defalias 'workon 'pyvenv-workon)
(workon "~/.virtualenv/default")
;; AUCTeX
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
;; Tex To PDF
(require 'tex)
(TeX-global-PDF-mode t)
;; Yasnippet
(setq yas-snippet-dirs
'("~/.emacs.d/snippets" ;; personal snippets
))
'("~/.emacs.d/snippets" ;; personal snippets/copied ones
)
)
(yas-global-mode t)
;; Custom Keybinds
(global-set-key (kbd "C-c C-w") 'my-cut-to-xclipboard)
(global-set-key (kbd "C-c M-w") 'my-copy-to-xclipboard)
(global-set-key (kbd "C-c M-y") 'my-paste-from-xclipboard)

View File

@ -1 +1 @@
Good signature from 474F05837FBDEF9B GNU ELPA Signing Agent <elpasign@elpa.gnu.org> (trust undefined) created at 2017-12-20T23:10:02+0100 using DSA
Good signature from 474F05837FBDEF9B GNU ELPA Signing Agent <elpasign@elpa.gnu.org> (trust undefined) created at 2017-12-21T23:10:02+0100 using DSA

File diff suppressed because one or more lines are too long

View File

@ -3,8 +3,8 @@
;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "company" "company.el" (23098 64922 443916
;;;;;; 164000))
;;;### (autoloads nil "company" "company.el" (23100 27210 102591
;;;;;; 235000))
;;; Generated autoloads from company.el
(autoload 'company-mode "company" "\
@ -74,8 +74,8 @@ inserted.
;;;***
;;;### (autoloads nil "company-abbrev" "company-abbrev.el" (23098
;;;;;; 64922 610583 388000))
;;;### (autoloads nil "company-abbrev" "company-abbrev.el" (23100
;;;;;; 27210 252591 964000))
;;; Generated autoloads from company-abbrev.el
(autoload 'company-abbrev "company-abbrev" "\
@ -85,8 +85,8 @@ inserted.
;;;***
;;;### (autoloads nil "company-bbdb" "company-bbdb.el" (23098 64922
;;;;;; 557249 877000))
;;;### (autoloads nil "company-bbdb" "company-bbdb.el" (23100 27210
;;;;;; 209258 420000))
;;; Generated autoloads from company-bbdb.el
(autoload 'company-bbdb "company-bbdb" "\
@ -96,8 +96,8 @@ inserted.
;;;***
;;;### (autoloads nil "company-css" "company-css.el" (23098 64922
;;;;;; 433916 131000))
;;;### (autoloads nil "company-css" "company-css.el" (23100 27210
;;;;;; 92591 187000))
;;; Generated autoloads from company-css.el
(autoload 'company-css "company-css" "\
@ -107,8 +107,8 @@ inserted.
;;;***
;;;### (autoloads nil "company-dabbrev" "company-dabbrev.el" (23098
;;;;;; 64922 500583 20000))
;;;### (autoloads nil "company-dabbrev" "company-dabbrev.el" (23100
;;;;;; 27210 159258 177000))
;;; Generated autoloads from company-dabbrev.el
(autoload 'company-dabbrev "company-dabbrev" "\
@ -119,7 +119,7 @@ dabbrev-like `company-mode' completion backend.
;;;***
;;;### (autoloads nil "company-dabbrev-code" "company-dabbrev-code.el"
;;;;;; (23098 64922 477249 609000))
;;;;;; (23100 27210 135924 731000))
;;; Generated autoloads from company-dabbrev-code.el
(autoload 'company-dabbrev-code "company-dabbrev-code" "\
@ -131,8 +131,8 @@ comments or strings.
;;;***
;;;### (autoloads nil "company-elisp" "company-elisp.el" (23098 64922
;;;;;; 633916 800000))
;;;### (autoloads nil "company-elisp" "company-elisp.el" (23100 27210
;;;;;; 272592 61000))
;;; Generated autoloads from company-elisp.el
(autoload 'company-elisp "company-elisp" "\
@ -142,8 +142,8 @@ comments or strings.
;;;***
;;;### (autoloads nil "company-etags" "company-etags.el" (23098 64922
;;;;;; 453916 197000))
;;;### (autoloads nil "company-etags" "company-etags.el" (23100 27210
;;;;;; 112591 284000))
;;; Generated autoloads from company-etags.el
(autoload 'company-etags "company-etags" "\
@ -153,8 +153,8 @@ comments or strings.
;;;***
;;;### (autoloads nil "company-files" "company-files.el" (23098 64922
;;;;;; 510583 54000))
;;;### (autoloads nil "company-files" "company-files.el" (23100 27210
;;;;;; 169258 226000))
;;; Generated autoloads from company-files.el
(autoload 'company-files "company-files" "\
@ -166,8 +166,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-gtags" "company-gtags.el" (23098 64922
;;;;;; 373915 932000))
;;;### (autoloads nil "company-gtags" "company-gtags.el" (23100 27210
;;;;;; 35924 245000))
;;; Generated autoloads from company-gtags.el
(autoload 'company-gtags "company-gtags" "\
@ -177,8 +177,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-ispell" "company-ispell.el" (23098
;;;;;; 64922 623916 767000))
;;;### (autoloads nil "company-ispell" "company-ispell.el" (23100
;;;;;; 27210 262592 12000))
;;; Generated autoloads from company-ispell.el
(autoload 'company-ispell "company-ispell" "\
@ -188,8 +188,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-keywords" "company-keywords.el" (23098
;;;;;; 64922 533916 465000))
;;;### (autoloads nil "company-keywords" "company-keywords.el" (23100
;;;;;; 27210 189258 323000))
;;; Generated autoloads from company-keywords.el
(autoload 'company-keywords "company-keywords" "\
@ -199,8 +199,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-nxml" "company-nxml.el" (23098 64922
;;;;;; 577249 944000))
;;;### (autoloads nil "company-nxml" "company-nxml.el" (23100 27210
;;;;;; 225925 168000))
;;; Generated autoloads from company-nxml.el
(autoload 'company-nxml "company-nxml" "\
@ -210,8 +210,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-oddmuse" "company-oddmuse.el" (23098
;;;;;; 64922 410582 720000))
;;;### (autoloads nil "company-oddmuse" "company-oddmuse.el" (23100
;;;;;; 27210 69257 740000))
;;; Generated autoloads from company-oddmuse.el
(autoload 'company-oddmuse "company-oddmuse" "\
@ -221,8 +221,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-semantic" "company-semantic.el" (23098
;;;;;; 64922 387249 310000))
;;;### (autoloads nil "company-semantic" "company-semantic.el" (23100
;;;;;; 27210 45924 294000))
;;; Generated autoloads from company-semantic.el
(autoload 'company-semantic "company-semantic" "\
@ -232,8 +232,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-tempo" "company-tempo.el" (23098 64922
;;;;;; 487249 642000))
;;;### (autoloads nil "company-tempo" "company-tempo.el" (23100 27210
;;;;;; 145924 779000))
;;; Generated autoloads from company-tempo.el
(autoload 'company-tempo "company-tempo" "\
@ -243,8 +243,8 @@ File paths with spaces are only supported inside strings.
;;;***
;;;### (autoloads nil "company-tng" "company-tng.el" (23098 64922
;;;;;; 567249 910000))
;;;### (autoloads nil "company-tng" "company-tng.el" (23100 27210
;;;;;; 219258 469000))
;;; Generated autoloads from company-tng.el
(autoload 'company-tng-frontend "company-tng" "\
@ -262,8 +262,8 @@ Applies the default configuration to enable company-tng.
;;;***
;;;### (autoloads nil "company-xcode" "company-xcode.el" (23098 64922
;;;;;; 600583 355000))
;;;### (autoloads nil "company-xcode" "company-xcode.el" (23100 27210
;;;;;; 242591 915000))
;;; Generated autoloads from company-xcode.el
(autoload 'company-xcode "company-xcode" "\
@ -274,7 +274,7 @@ Applies the default configuration to enable company-tng.
;;;***
;;;### (autoloads nil "company-yasnippet" "company-yasnippet.el"
;;;;;; (23098 64922 590583 322000))
;;;;;; (23100 27210 235925 216000))
;;; Generated autoloads from company-yasnippet.el
(autoload 'company-yasnippet "company-yasnippet" "\
@ -306,7 +306,7 @@ shadow backends that come after it. Recommended usages:
;;;### (autoloads nil nil ("company-capf.el" "company-clang.el" "company-cmake.el"
;;;;;; "company-eclim.el" "company-pkg.el" "company-template.el")
;;;;;; (23098 64922 543916 499000))
;;;;;; (23100 27210 202591 721000))
;;;***

View File

@ -3,7 +3,7 @@
;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "elpy" "elpy.el" (23098 64924 850590 934000))
;;;### (autoloads nil "elpy" "elpy.el" (23100 27212 349268 819000))
;;; Generated autoloads from elpy.el
(autoload 'elpy-enable "elpy" "\
@ -39,7 +39,7 @@ Display the version of Elpy.
;;;***
;;;### (autoloads nil nil ("elpy-django.el" "elpy-pkg.el" "elpy-profile.el"
;;;;;; "elpy-refactor.el" "elpy-shell.el") (23098 64926 283929 141000))
;;;;;; "elpy-refactor.el" "elpy-shell.el") (23100 27213 792609 165000))
;;;***

View File

@ -4,7 +4,7 @@
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "find-file-in-project" "find-file-in-project.el"
;;;;;; (23098 64921 417246 69000))
;;;;;; (23100 27209 212586 911000))
;;; Generated autoloads from find-file-in-project.el
(autoload 'ffip-git-diff-current-file "find-file-in-project" "\

View File

@ -4,7 +4,7 @@
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "forest-blue-theme" "forest-blue-theme.el"
;;;;;; (23099 98 852266 8000))
;;;;;; (23100 22855 924733 215000))
;;; Generated autoloads from forest-blue-theme.el
(when load-file-name (add-to-list 'custom-theme-load-path (file-name-as-directory (file-name-directory load-file-name))))

Binary file not shown.

Binary file not shown.

View File

@ -4,7 +4,7 @@
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "highlight-indentation" "highlight-indentation.el"
;;;;;; (23098 64919 357239 246000))
;;;;;; (23100 27207 455911 711000))
;;; Generated autoloads from highlight-indentation.el
(autoload 'highlight-indentation-mode "highlight-indentation" "\

View File

@ -3,7 +3,7 @@
;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "ivy" "ivy.el" (23098 64920 380575 961000))
;;;### (autoloads nil "ivy" "ivy.el" (23100 27208 385916 227000))
;;; Generated autoloads from ivy.el
(autoload 'ivy-resume "ivy" "\
@ -123,7 +123,7 @@ Switch to another buffer in another window.
;;;***
;;;### (autoloads nil nil ("colir.el" "ivy-overlay.el" "ivy-pkg.el")
;;;;;; (23098 64920 347242 517000))
;;;;;; (23100 27208 352582 732000))
;;;***

View File

@ -3,7 +3,7 @@
;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "pyvenv" "pyvenv.el" (23098 64918 930571 174000))
;;;### (autoloads nil "pyvenv" "pyvenv.el" (23100 27207 15909 571000))
;;; Generated autoloads from pyvenv.el
(autoload 'pyvenv-activate "pyvenv" "\

View File

@ -3,7 +3,7 @@
;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil nil ("s.el") (23098 64901 513842 233000))
;;;### (autoloads nil nil ("s.el") (23100 27189 839159 453000))
;;;***

View File

@ -3,8 +3,8 @@
;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "yasnippet" "yasnippet.el" (23098 64917 790567
;;;;;; 438000))
;;;### (autoloads nil "yasnippet" "yasnippet.el" (23100 27205 952571
;;;;;; 71000))
;;; Generated autoloads from yasnippet.el
(autoload 'yas-minor-mode "yasnippet" "\
@ -52,8 +52,8 @@ A mode for editing yasnippets
;;;***
;;;### (autoloads nil nil ("yasnippet-pkg.el") (23098 64903 700523
;;;;;; 139000))
;;;### (autoloads nil nil ("yasnippet-pkg.el") (23100 27191 682501
;;;;;; 741000))
;;;***

View File

@ -0,0 +1,8 @@
(TeX-add-style-hook
".emacs"
(lambda ()
(TeX-run-style-hooks
"INCL/settings"
"{INCL/tu}"))
:latex)

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: fsrtable
# key: fsrtable
# --
Abstimmung
\begin{tabular}{ccc}
\toprule
Ja & Nein & Enthaltung \\\\\midrule
3 & 1 & 9 \\\\\bottomrule
\end{tabularx}

View File

@ -0,0 +1,219 @@
# -*- mode: snippet -*-
# name: fsrtemplate
# key: fsrtemplate
# --
\input{INCL/settings}
\input {INCL/tu}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% HIER ZUNÄCHST FOLGENDE RAHMENDATEN EINTRAGEN:
\DATUM {}
\BEGINN {}
\ENDE {}
\ORT {SM 109}
\VORSITZ {\RAT}
\PROTOKOLLANT {\AUTHOR}
\LETZTESITZUNG {01.12.2017}
% BITTE DARAN DENKEN FÜR DAS INHALTSVERZEICHNIS
% DEN CODE 2x HINTEREINANDER ZU KOMPILIEREN!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
% HIER IM TABBING BRAUCHT NICHTS VERÄNDERT ZU WERDEN.
\begin{tabbing}
\hspace{70pt}\=\hspace{70pt}\=\hspace{50pt}\=\kill
\textit{Beginn:} \> \beginn\ Uhr \> \textit{Ende:} \> \ende\ Uhr\\\\
\textit{Ort:} \> \ort\ \\\\
\textit{Leitung:} \> \vorsitz\ \\\\
\textit{Protokoll:} \> \protokollant\ \\\\
\end{tabbing}
\renewcommand\contentsname{Tagesordnung}
\tableofcontents
\pagebreak
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AB HIER BEGINNT DER INHALT DES PROTOKOLLS:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TOP 0
\section{Regularien}
\subsection{Eröffnung der Sitzung / Feststellung der Beschlussfähigkeit}
\begin{itemize}
\item anwesende Fachschaftsräte:
\begin{itemize}
\item
\end{itemize}
\item abwesende Fachschaftsräte:
\begin{itemize}
\item
\end{itemize}
\item anwesende Helfer:
\begin{itemize}
\item
\end{itemize}
\item Die Beschlussfähigkeit wurde festgestellt.
\end{itemize}
\subsection{Festlegung der Tagesordnung}
\begin{itemize}
\item
\end{itemize}
\bigskip
% TOP 1
\section{Protokolle}
\subsection{Genehmigung des Protokolls der konstituierenden Sitzung vom \letztesitzung}
\begin{itemize}
\item
\end{itemize}
\bigskip
% TOP 2
\section{Gremien und Referate}
\subsection{Berichte aus den Gremien}
\begin{itemize}
\item Fachschaftenkonferenz (FSK)
\begin{itemize}
\item
\end{itemize}
\item Forum Lehramts-FSK (FL-FSK)
\begin{itemize}
\item
\end{itemize}
\end{itemize}
\subsection{Berichte aus den Referaten}
\begin{itemize}
\item Sprecher
\begin{itemize}
\item
\end{itemize}
\item Finanzen
\begin{itemize}
\item
\end{itemize}
\item Information
\begin{itemize}
\item
\end{itemize}
\item Infrastruktur
\begin{itemize}
\item
\end{itemize}
\item Studienberatung
\begin{itemize}
\item SE:
\item LA:
\end{itemize}
\item Hochschulpolitik
\begin{itemize}
\item
\end{itemize}
\item Versorgung
\begin{itemize}
\item
\end{itemize}
\item Erstsemester Einführung (ESE)
\begin{itemize}
\item
\end{itemize}
\end{itemize}
\bigskip
% TOP 3
\section{Projekte}
\subsection{MINT-Party}
\begin{itemize}
\item
\end{itemize}
\subsection{Quartalstreffen/Weihnachtsfeier}
\begin{itemize}
\item
\end{itemize}
\subsection{LAN-Party}
\begin{itemize}
\item
\end{itemize}
\subsection{Teambildende Maßnahme}
\begin{itemize}
\item
\end{itemize}
\subsection{FSE-Merch Gründung - Beschluss}
\begin{itemize}
\item
\end{itemize}
\bigskip
% TOP 4
\section{Organisatorisches und Studienrelevantes}
\begin{itemize}
\item
\end{itemize}
% TOP 5
\section{Anträge}
\subsection{Ernennung zum Faschaftshelfer von David Steimel und Tobias Stottrop}
\begin{itemize}
\item
\end{itemize}
\bigskip
% TOP 6
\section{Verschiedenes}
\begin{itemize}
\item
\end{itemize}
\bigskip
Der Vorsitzende beendet die Sitzung um \ende\ Uhr.
\end{document}
% Abstimmung
% \begin{tabular}{ccc}
% \toprule
% Ja & Nein & Enthaltung \\
% \midrule
% 3 & 1 & 9 \\
% \bottomrule
% \end{tabularx}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

Binary file not shown.

View File

@ -3,4 +3,4 @@
# key: mt
# group: object oriented
# --
__metaclass__ = ${1:type}
__metaclass__ = type