dotfiles

shared miscellaneous configuration files between my systems
git clone git://git.eonn.xyz/dotfiles.git
Log | Files | Refs

commit 92a179e8e72d82158945fcf45c6a8c3d20ef6e33
parent 77232707f0d2dc8d055c0058cf8b500d1b5b9328
Author: Ian Ressa <ian@eonn.xyz>
Date:   Fri,  2 Sep 2022 02:07:08 -0400

add yasnippet-snippets (and thus melpa) and made some snippets for latex mode

Diffstat:
M.emacs.d/init.el | 10+++++++++-
A.emacs.d/snippets/latex-mode/generic-section | 7+++++++
A.emacs.d/snippets/latex-mode/generic-subsection | 7+++++++
A.emacs.d/snippets/latex-mode/inlinemath | 7+++++++
A.emacs.d/snippets/latex-mode/math | 9+++++++++
A.emacs.d/snippets/latex-mode/proof | 9+++++++++
6 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/.emacs.d/init.el b/.emacs.d/init.el @@ -41,7 +41,7 @@ '(org-directory "~/.org/") '(org-modules '(ol-bbdb ol-bibtex ol-docview ol-eww ol-gnus org-habit ol-info ol-irc ol-mhe ol-rmail ol-w3m)) - '(package-selected-packages '(auctex)) + '(package-selected-packages '(yasnippet-snippets auctex)) '(safe-local-variable-values '((eval modify-syntax-entry 43 "'") (eval modify-syntax-entry 36 "'") @@ -91,4 +91,12 @@ ;; YASnippet (require 'yasnippet) (yas-global-mode 1) +(setq yas-snippet-dirs + '("~/.emacs.d/snippets")) +;; + +;; melpa +(require 'package) +(add-to-list 'package-archives + '("melpa" . "http://melpa.org/packages/") t) ;; diff --git a/.emacs.d/snippets/latex-mode/generic-section b/.emacs.d/snippets/latex-mode/generic-section @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: generic section +# key: secn +# -- + +\\section*{$0} +\ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/generic-subsection b/.emacs.d/snippets/latex-mode/generic-subsection @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: generic subsection +# key: ssecn +# -- + +\\subsection*{$0} +\ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/inlinemath b/.emacs.d/snippets/latex-mode/inlinemath @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: inlinemath +# key: m +# -- + +\$$0\$ +\ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/math b/.emacs.d/snippets/latex-mode/math @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: math +# key: mm +# -- + +\\[ + $0 +\\] +\ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/proof b/.emacs.d/snippets/latex-mode/proof @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: proof +# key: proof +# -- + +\\begin{proof} + $0 +\\end{proof} +\ No newline at end of file