From 5ce7aac301b92396a0c883db233158270f5f9be2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 14 Mar 2023 14:02:13 +0100 Subject: Configure hippie-expand. --- init.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 55278b7..9db6fdd 100644 --- a/init.org +++ b/init.org @@ -752,7 +752,12 @@ I like automatic completion, but it’s nice to also have a key to trigger compl (define-key company-mode-map (kbd "C-c ") 'company-complete) #+END_SRC -#+BEGIN_SRC elisp +Hippie expand is a neat way to expand text based on already existing text. Unfortunately, it collides with paredit (or smartparens) in that it may insert expansions that include unmatched parentheses. To avoid this I disable two types of expansions: + +#+BEGIN_SRC elisp :noweb-ref yas +(dolist (f '(try-expand-line try-expand-list)) + (setq hippie-expand-try-functions-list + (remq f hippie-expand-try-functions-list))) #+END_SRC I also use snippets for commonly typed expressions. -- cgit v1.2.3