summary refs log tree commit diff
path: root/emacs/custom/my-text.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/my-text.el')
-rw-r--r--emacs/custom/my-text.el7
1 files changed, 3 insertions, 4 deletions
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