From 9699319800445d66fd251d367ee9090699a62eb2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 19 May 2022 17:51:26 -0700 Subject: ref(text): replace dabbrev with hippie-expand --- emacs/custom/my-text.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'emacs/custom') diff --git a/emacs/custom/my-text.el b/emacs/custom/my-text.el index b4f7c28..0c99ba6 100644 --- a/emacs/custom/my-text.el +++ b/emacs/custom/my-text.el @@ -20,10 +20,9 @@ (when (executable-find "pandoc") (customize-set-variable 'markdown-command "pandoc -f markdown -t html")) -(eval-after-load 'dabbrev - (let ((map global-map)) - (define-key map (kbd "M-/") #'dabbrev-expand) - (define-key map (kbd "C-x M-/") #'dabbrev-completion))) +;; https://www.masteringemacs.org/article/text-expansion-hippie-expand +;; replace default keybinding for `dabbrev' with `hippie-expand' +(global-set-key (kbd "M-/") 'hippie-expand) (setq only-global-abbrevs nil) (eval-after-load 'abbrev -- cgit 1.4.1