diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-07-21 14:50:37 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-07-21 14:50:37 +0200 |
| commit | f44cc57b50e9232ce1ef4aa49488477c7acd99bf (patch) | |
| tree | da910e49707c64dcaaac6fd1894d2f13ef087200 | |
| parent | 6e4164ff49a85e3d1f55210636d8df3314b11ada (diff) | |
Simplify corfu--match-symbol-p
| -rw-r--r-- | corfu.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -61,7 +61,7 @@ (defcustom corfu-continue-commands ;; nil is undefined command - '(nil completion-at-point "corfu-.*" "scroll-other-window.*") + '(nil completion-at-point "\\`corfu-" "\\`scroll-other-window") "Continue Corfu completion after executing these commands." :type '(repeat (choice regexp symbol))) @@ -100,7 +100,7 @@ filter string with spaces is allowed." :type 'float) (defcustom corfu-auto-commands - '(".*self-insert-command") + '("self-insert-command\\'") "Commands which initiate auto completion." :type '(repeat (choice regexp symbol))) @@ -507,7 +507,7 @@ filter string with spaces is allowed." (seq-some (lambda (x) (if (symbolp x) (eq sym x) - (string-match-p (format "\\`%s\\'" x) (symbol-name sym)))) + (string-match-p x (symbol-name sym)))) pattern))) (defun corfu-quit () |
