about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-20 11:12:39 +0000
committerDavid Morgan <djm_uk@protonmail.com>2024-09-20 11:12:39 +0000
commitf9802defb6d3193b4249139ebd972e0f59966ff1 (patch)
tree3c2504c14f6a5bff768e89f8136a0cdf3aa1228b /.emacs.d
parent97ffcad9eb4cc20fba5999700039c708a26eac2a (diff)
downloaddotfiles-f9802defb6d3193b4249139ebd972e0f59966ff1.tar.gz
Add titlecase bindings to embark maps
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-editor.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 8a4c501..4f5a437 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -220,8 +220,9 @@
   :hook (elpaca-after-init . editorconfig-mode))
 
 (use-package titlecase
-  ;; TODO find a better binding
-  :bind ("C-c c t t" . titlecase-dwim))
+  :bind (("C-c c t t" . titlecase-dwim)
+         (:map embark-heading-map ("T" . titlecase-line))
+         (:map embark-region-map ("T" . titlecase-region))))
 
 (use-package caser
   :ensure (caser :host github :repo "emacsmirror/caser")