emacs.d

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

git clone git://git.shimmy1996.com/emacs.d.git
commit 7ad92142345f48e42306b2d507c1afdfce8ad9be
parent b113338c742257f5569553b73dac65464bb12c24
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Fri,  9 Feb 2018 22:14:53 -0600

Adding snippet to insert ruby text and bound zoom to scroll wheels.

Diffstat:
MREADME.org | 7+++++++
Asnippets/org-mode/rubi | 6++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/README.org b/README.org
@@ -288,6 +288,13 @@ Fallback for CJK fonts.
                     (font-spec :size 12 :name "Noto Sans Mono CJK SC"))
 #+END_SRC
 
+** Zoom In
+Use mouse wheel to adjust zoom level.
+#+BEGIN_SRC emacs-lisp
+  (global-set-key [C-mouse-4] 'text-scale-increase)
+  (global-set-key [C-mouse-5] 'text-scale-decrease)
+#+END_SRC
+
 * Org-mode
 Mostly formatting settings in =org-mode=.
 ** Installation
diff --git a/snippets/org-mode/rubi b/snippets/org-mode/rubi
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: rubi
+# key: rubi
+# --
+<ruby>${1:漢字}<rp>(</rp><rt>${2:かんじ}</rt><rp>)</rp></ruby>$0+
\ No newline at end of file