diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2015-04-13 10:35:15 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2015-04-13 10:35:15 -0400 |
commit | f6bdbdf1f58d8fda61bc901b852d25fdf1a1f9da (patch) | |
tree | 9416759df0c4f9cf55ae7a7628218ea717bb2974 /lisp/completion.el | |
parent | c9d78e18c66dc46f0988257e0029213ac7eff62b (diff) | |
download | emacs-f6bdbdf1f58d8fda61bc901b852d25fdf1a1f9da.tar.gz |
(completion-lisp-mode-hook): Use completion-separator-chars
* lisp/completion.el (completion-lisp-mode-hook):
Use completion-separator-chars rather than local key binding.
Diffstat (limited to 'lisp/completion.el')
-rw-r--r-- | lisp/completion.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/completion.el b/lisp/completion.el index d3f118705b7..b53f2d3ac79 100644 --- a/lisp/completion.el +++ b/lisp/completion.el @@ -2228,12 +2228,9 @@ TYPE is the type of the wrapper to be added. Can be :before or :under." (defun completion-lisp-mode-hook () (setq completion-syntax-table completion-lisp-syntax-table) ;; Lisp Mode diffs - (local-set-key "!" 'self-insert-command) - (local-set-key "&" 'self-insert-command) - (local-set-key "%" 'self-insert-command) - (local-set-key "?" 'self-insert-command) - (local-set-key "=" 'self-insert-command) - (local-set-key "^" 'self-insert-command)) + (setq-local completion-separator-chars + (cl-set-difference completion-separator-chars + (append "!&%?=^" nil)))) ;; C mode diffs. |