summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-14 14:02:13 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-14 14:02:13 +0100
commit5ce7aac301b92396a0c883db233158270f5f9be2 (patch)
tree890d9c4bf501bafadc8c2e387aebfc83d78dd53e
parent7f3c596576adb7ee7d70d0f182f73a0b1ecb8456 (diff)
Configure hippie-expand.
-rw-r--r--init.org7
1 files changed, 6 insertions, 1 deletions
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 <tab>") '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.