all repos — nixfiles @ 083f8933424fc276a1575029a266223ef44f63bf

System and user configuration, managed by nix and home-manager

Emacs: Add typo mode for nice “quotes”
Alan Pearce alan@alanpearce.co.uk
Wed, 17 Dec 2014 20:14:50 +0000
commit

083f8933424fc276a1575029a266223ef44f63bf

parent

187efed82e62484867a16119fa76c2988a271fc8

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/Casktag-emacs/emacs.d/Cask
@@ -84,6 +84,7 @@ (depends-on "smart-tabs-mode") (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")
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1018,6 +1018,11 @@ (req-package misc   :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)