summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-12-17 20:14:50 +0000
committerAlan Pearce2014-12-17 20:14:50 +0000
commit083f8933424fc276a1575029a266223ef44f63bf (patch)
treeafb667000d66d38ff2e025a0fe579f22c4cab27f /tag-emacs
parent187efed82e62484867a16119fa76c2988a271fc8 (diff)
downloaddotfiles-083f8933424fc276a1575029a266223ef44f63bf.tar.lz
dotfiles-083f8933424fc276a1575029a266223ef44f63bf.tar.zst
dotfiles-083f8933424fc276a1575029a266223ef44f63bf.zip
Emacs: Add typo mode for nice “quotes”
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.el5
2 files changed, 6 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index 4809547..22b5580 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -84,6 +84,7 @@
 (depends-on "smartparens")
 (depends-on "toml-mode")
 (depends-on "tup-mode")
+(depends-on "typo")
 (depends-on "undo-tree")
 (depends-on "use-package")
 (depends-on "visual-regexp")
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 2069325..a407e67 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1018,6 +1018,11 @@ mouse-1: Display Line and Column Mode Menu"))))))
   :bind (("M-z" . zap-up-to-char)
          ("M-Z" . zap-to-char)))
 
+(req-package typo
+  :init (progn
+          (typo-global-mode t)
+          (add-hook 'text-mode-hook 'typo-mode)))
+
 (req-package ap-functions
   :commands (ap/remove-extra-cr)
   :bind (("C-x r M-w" . copy-rectangle)