Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: php-completion.el #708

Merged
merged 8 commits into from
Oct 2, 2022
Merged

New feature: php-completion.el #708

merged 8 commits into from
Oct 2, 2022

Conversation

zonuexe
Copy link
Member

@zonuexe zonuexe commented Sep 19, 2022

Concept

php-complete is PHP Mode's bundled autocomplete. This function is implemented as a CAPF based on Cape. It works as Emacs' built-in completion mechanism, but Corfu upgrades it to a modern interface with popups.

How to use

This feature is not enabled by default.

(defun my-php-mode-setup ()
  (setq-local completion-at-point-functions
              (append (list #'php-complete-complete-function)
                      ;; (list (cape-company-to-capf #'company-phpactor))
                      completion-at-point-functions))

(add-hook 'php-mode-hook #'my-php-mode-setup)

You can execute it directly by M-x php-complete-complete-function.

スクリーンショット 2022-10-02 11 36 23

@zonuexe zonuexe force-pushed the feature/php-completion branch 3 times, most recently from 862c2de to 129ab9d Compare September 19, 2022 01:41
@zonuexe zonuexe force-pushed the feature/php-completion branch 4 times, most recently from 4202947 to eadb030 Compare September 21, 2022 16:11
@zonuexe zonuexe force-pushed the feature/php-completion branch from eadb030 to 12cf8e2 Compare October 2, 2022 01:24
@zonuexe zonuexe force-pushed the feature/php-completion branch from 12cf8e2 to 8366639 Compare October 2, 2022 02:34
@zonuexe zonuexe merged commit 7e4905a into master Oct 2, 2022
@zonuexe zonuexe deleted the feature/php-completion branch October 2, 2022 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant