# My Emacs Setup # - Install Emacs $ sudo apt-get install emacs24 - Add this to your emacs init in ~/.emacs.d/init.el (require 'package) ;; You might already have this line (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (when (< emacs-major-version 24) ;; For important compatibility libraries like cl-lib (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) (package-initialize) ;; You might already have this line - Restart Emacs # Install php-mode - Call 'list-packages': [Alt]+[x] list-packages - Search your package (full text search) [Ctrl]+[s] php-mode - Install by click on the name Done.