Commit f6bdbdf1 authored by Stefan Monnier's avatar Stefan Monnier

(completion-lisp-mode-hook): Use completion-separator-chars

* lisp/completion.el (completion-lisp-mode-hook):
Use completion-separator-chars rather than local key binding.
parent c9d78e18
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment