Skip Navigation

Remove hook from a mode setting completion at point functions?

I’m trying to set up completion-at-point-functions in pascal-mode, I found that adding a hook with use-package works and leaves the global setting:

:hook (pascal-mode . (remove-hook ‘completion-at-point-functions ‘pascal-completions-at-point t))

However that causes a File mode specification error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’) when I open a pascal file. Any ideas on how I could do it better?

1
1 comments