about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.el b/init.el index c9444c9..5bf7077 100644 --- a/init.el +++ b/init.el
@@ -1654,8 +1654,23 @@ successive invocations."
1654 (:hook-into prog-mode)) 1654 (:hook-into prog-mode))
1655 1655
1656(setup (:straight typo) 1656(setup (:straight typo)
1657
1658 ;; jlf & cvandusen on #emacs make a great point: ’ (RIGHT SINGLE QUOTATION
1659 ;; MARK) is /not/ an apostrophe. Making it curly is a typographical
1660 ;; consideration, not an input consideration. (I suppose you could make the
1661 ;; argument that all of these are typographical considerations, but .. bleh.)
1662 (:bind "'" self-insert-command
1663 "`" self-insert-command)
1664
1665 ;; Enable C-c 8 map in all buffers
1666 (typo-global-mode +1)
1667
1657 (add-hook 'text-mode-hook 1668 (add-hook 'text-mode-hook
1658 (defun text-mode@typo-unless () 1669 (defun text-mode@typo-unless ()
1670 ;; I use this /instead/ of the provided
1671 ;; `typo-disable-electricity-functions' because the latter checks
1672 ;; on every pertinent keypress. I know I want /no/ typo-ing in
1673 ;; these certain buffers, so I won't even turn on the mode.
1659 "Start `typo-mode' UNLESS the buffer matches a predicate." 1674 "Start `typo-mode' UNLESS the buffer matches a predicate."
1660 (unless (or ; predicates here 1675 (unless (or ; predicates here
1661 (string-match-p "COMMIT_EDITMSG" buffer-file-name)) 1676 (string-match-p "COMMIT_EDITMSG" buffer-file-name))