about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-10-07 14:02:09 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-10-07 14:02:09 +0100
commit9064e27e28aacf4235a226987818a107dfa30ad3 (patch)
treef433c1163afa152561439827bf0cf7708e958749
parentf308fc30af35b11bf87f4ebd8a026d8b6f3cd046 (diff)
downloaddotfiles-9064e27e28aacf4235a226987818a107dfa30ad3.tar.gz
Tidy hippie-expand-try-functions-list
-rw-r--r--.emacs.d/lisp/init-completion.el23
1 files changed, 11 insertions, 12 deletions
diff --git a/.emacs.d/lisp/init-completion.el b/.emacs.d/lisp/init-completion.el
index c133e91..35cf374 100644
--- a/.emacs.d/lisp/init-completion.el
+++ b/.emacs.d/lisp/init-completion.el
@@ -24,19 +24,18 @@
   (dabbrev-case-replace nil))
 
 (use-feature hippie-expand
+  :custom
+  (hippie-expand-try-functions-list '(try-expand-dabbrev
+                                      try-expand-all-abbrevs
+                                      try-expand-dabbrev-all-buffers
+                                      try-expand-dabbrev-from-kill
+                                      try-complete-file-name-partially
+                                      try-complete-file-name
+                                      try-expand-list
+                                      try-expand-line
+                                      try-complete-lisp-symbol-partially
+                                      try-complete-lisp-symbol))
   :config
-  (setq hippie-expand-try-functions-list
-        '(;yas-hippie-try-expand
-          try-expand-dabbrev
-          try-expand-all-abbrevs
-          try-expand-dabbrev-all-buffers
-          try-expand-dabbrev-from-kill
-          try-complete-file-name-partially
-          try-complete-file-name
-          try-expand-list
-          try-expand-line
-          try-complete-lisp-symbol-partially
-          try-complete-lisp-symbol))
   ;; https://www.emacswiki.org/emacs/HippieExpand#h5o-9
   (defadvice he-substitute-string (after he-paredit-fix)
     "Remove extra paren when expanding line in paredit."