emacs.d

My emacs configuration, done in a literate programming fashion using org-mode

git clone git://git.shimmy1996.com/emacs.d.git
commit fcf3745003d90a9115eef8edb7fb20bd4214f66f
parent b1193b471218c85d72a402fbca92a9df0688375c
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Wed,  1 Aug 2018 16:27:24 -0400

New snippets for LaTeX in org-mode. Adjusted default image size for org-mode exports.

Diffstat:
MREADME.org | 7+++++++
Asnippets/org-mode/frac | 6++++++
Asnippets/org-mode/inline-math | 6++++++
3 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/README.org b/README.org
@@ -1,6 +1,7 @@
 #+TITLE: My Emacs Config
 #+AUTHOR: Shimmy Xu
 #+TODO: DISABLED(t) | ENABLED(d)
+#+PROPERTY: header-args :results none
 
 This is my humble collection of Emacs config, modeled after
 [[https://github.com/admiralakber/simplemacs][simplemacs]], documented
@@ -873,6 +874,12 @@ Non-nil means highlight LaTeX related syntax in the buffer. When non nil, the va
     '(setf org-highlight-latex-and-related '(latex)))
 #+END_SRC
 
+**** Default Image Size
+In LaTeX export, the default image size is =width=.9\linewidth=, which is way too large. Setting this to empty allows images to retain it's original size.
+#+BEGIN_SRC emacs-lisp
+  (setq org-latex-image-default-width ".6\\linewidth")
+#+END_SRC
+
 *** Enable spell checking
 Spell checking with =flyspell-mode=. Would need to install dictionary lib like =aspell= in base system.
 #+BEGIN_SRC emacs-lisp
diff --git a/snippets/org-mode/frac b/snippets/org-mode/frac
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: frac
+# key: fr
+# --
+\frac{$1}{$2}$0+
\ No newline at end of file
diff --git a/snippets/org-mode/inline-math b/snippets/org-mode/inline-math
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: inline-math
+# key: $
+# --
+\\($1\\)$2+
\ No newline at end of file