diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-19 17:51:26 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-19 17:51:58 -0700 |
commit | 9699319800445d66fd251d367ee9090699a62eb2 (patch) | |
tree | e7d31729c5ade94ca2ea224eeb49abf1a098bcb7 /emacs/custom | |
parent | feat(snippets): add a few more snippets (diff) | |
download | emacs.d-9699319800445d66fd251d367ee9090699a62eb2.tar.gz |
ref(text): replace dabbrev with hippie-expand
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/my-text.el | 7 |
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 |