From 8c10c1bc7a3787b3c86eef5e157283f608276649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Tue, 6 Dec 2022 12:40:36 +0000 Subject: [PATCH] Sort out typo-mode --- config.org | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/config.org b/config.org index 276b69d..4d69fd6 100644 --- a/config.org +++ b/config.org @@ -313,7 +313,7 @@ This apparently deletes really old entries from the database. ** =git-gutter= -Shows, or at least purports to show, =git diff= in the left margin if the file is being tracked by =git=. +Shows, or at least purports to show, =git diff= in the left margin if the file is being tracked by =git=. The colours don’t seem to work properly with the current theme. #+BEGIN_SRC emacs-lisp (use-package git-gutter @@ -666,14 +666,15 @@ As previously described, “the big boy”. I know little about most of these se ** =typo= -Automatically use smart quotes in text modes. (This was set up with =org-mode-hook=, but surely should be =text-mode-hook=? Will revert if necessary.) +Automatically use smart quotes. (Can’t be set to =text-mode-hook=, unfortunately, as this messes things up in LaTeX; but the only other text-modes I use are =org= and Markdown, I think.) #+BEGIN_SRC emacs-lisp - (use-package typo - :custom - (typo-global-mode 1) - :init - (add-hook 'text-mode-hook 'typo-mode)) + (use-package typo + :custom + (typo-global-mode 1) + :init + (add-hook 'org-mode-hook 'typo-mode) + (add-hook 'markdown-mode-hook 'typo-mode)) #+END_SRC ** =yasnippet=