diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-03-14 14:02:13 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-03-14 14:02:13 +0100 |
commit | 5ce7aac301b92396a0c883db233158270f5f9be2 (patch) | |
tree | 890d9c4bf501bafadc8c2e387aebfc83d78dd53e | |
parent | 7f3c596576adb7ee7d70d0f182f73a0b1ecb8456 (diff) |
Configure hippie-expand.
-rw-r--r-- | init.org | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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. |