Mehr foo für emacs. latex-mode will noch nicht so ganz.....

This commit is contained in:
madmaurice 2017-05-19 20:42:54 +02:00
parent f0585dbdbf
commit 6ee435a662
4 changed files with 41 additions and 0 deletions

View file

@ -58,6 +58,9 @@
(ensure-package-installed 'use-package)
;; *.tex files are Latex-Files
(add-to-list 'auto-mode-alist '("\\.py\\'" . LaTeX-mode))
;; theme
(use-package heroku-theme
:ensure t)
@ -92,10 +95,26 @@
(setq ivy-count-format "(%d/%d) ")
(define-key ivy-minibuffer-map (kbd "<C-return>") 'ivy-immediate-done)))
;; Neotree
(use-package neotree
:ensure t
:demand t
:bind ("C-x n" . neotree-show)
:config
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)
(add-hook 'neo-enter-hook
(lambda (type path arg) (if (equal type 'file)
(neotree-hide)))))
;; Cursor centered
(use-package centered-cursor-mode
:ensure t
:demand t
:disabled
:config (global-centered-cursor-mode))
;; Yasnippet

View file

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: description-env
# key: desc
# --
\begin{description}
\item[$1] $2
$0
\end{description}

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: emph
# key: emph
# --
\emph{$1} $0

View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: item-desc
# key: itd
# --
\item[$1] $2
$0