From 06b382d4bf36d581b9c7ebe8280defa71b8aea4f Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 15 Jun 2017 12:04:19 +0200 Subject: [PATCH] Mehr emacs kram: mouse deaktiviert und 2 snippets --- emacs/.emacs | 8 +++++++- emacs/.emacs.d/snippets/latex-mode/beamer-frame | 8 ++++++++ emacs/.emacs.d/snippets/latex-mode/itemize | 2 -- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 emacs/.emacs.d/snippets/latex-mode/beamer-frame diff --git a/emacs/.emacs b/emacs/.emacs index 832df3c..cb61005 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -14,6 +14,10 @@ (height . 40) )) +(defun silence () + (interactive)) + + (push '("melpa" . "http://melpa.milkbox.net/packages/") package-archives) (custom-set-variables @@ -127,7 +131,9 @@ (evil-mode 1) (setq evil-ex-substitute-global t) (define-key evil-normal-state-map "/" 'swiper) - (setq-default evil-cross-lines t)) +(define-key evil-motion-state-map [down-mouse-1] 'silence) +(define-key evil-motion-state-map [mouse-1] 'silence) +(setq-default evil-cross-lines t)) ;; Auto-Complete (use-package auto-complete diff --git a/emacs/.emacs.d/snippets/latex-mode/beamer-frame b/emacs/.emacs.d/snippets/latex-mode/beamer-frame new file mode 100644 index 0000000..934c9d2 --- /dev/null +++ b/emacs/.emacs.d/snippets/latex-mode/beamer-frame @@ -0,0 +1,8 @@ +# key: frame +# name: beamer-frame +# -- +% frame $1 +\begin{frame} + \frametitle*{${1:frametitle}} + $0 +\end{frame} diff --git a/emacs/.emacs.d/snippets/latex-mode/itemize b/emacs/.emacs.d/snippets/latex-mode/itemize index befcb96..61e0e56 100644 --- a/emacs/.emacs.d/snippets/latex-mode/itemize +++ b/emacs/.emacs.d/snippets/latex-mode/itemize @@ -3,8 +3,6 @@ # key: item # -- \begin{itemize} - \item $1 $0 - \end{itemize} \ No newline at end of file