0

I want to install PHP mode for GNU emacs.

The documentation says:

With GNU Emacs 24 or later then you can use its package feature to install PHP Mode from MELPA.

But when I press Alt-x list-packages I do not see this mode listed.

Why?

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130
  • 1
    Have you configured the MELPA package archive? – phils Aug 20 '18 at 10:36
  • Yes, I did in `.emacs` files – Billal Begueradj Aug 20 '18 at 11:15
  • I can't replicate the issue -- I can see `php-mode` in the list. I presume that you can see (lots of) other packages in the list with "melpa" indicated in the 'archive' column? – phils Aug 20 '18 at 12:58
  • 1
    In either case, see whether`M-x package-refresh-contents` sorts it out. – phils Aug 20 '18 at 13:02
  • When I open emacs and list the packages, it shows the list is updating by itself but php-mode never appeared .... when I typed the command you suggested, I finally see it. If you want to transform your comment into an answer, I will be glad to upvote and accept it. Thank you very much @phils – Billal Begueradj Aug 20 '18 at 13:11

1 Answers1

1

To ensure that your local listing of packages is synchronised with the upstream package archives, use M-x package-refresh-contents, and then M-x list-packages again.

phils
  • 71,335
  • 11
  • 153
  • 198