add php mode support
This commit is contained in:
parent
8faa6d8868
commit
e25956948a
17
init.el
17
init.el
@ -375,6 +375,23 @@ inserted between the braces between the braces."
|
|||||||
("C-c & t" . yas-describe-tables)
|
("C-c & t" . yas-describe-tables)
|
||||||
("C-c & &" . org-mark-ring-goto)))
|
("C-c & &" . org-mark-ring-goto)))
|
||||||
|
|
||||||
|
;;; PHP
|
||||||
|
|
||||||
|
(use-package php-mode
|
||||||
|
:ensure nil
|
||||||
|
:defer)
|
||||||
|
|
||||||
|
(use-package company-php
|
||||||
|
:ensure nil
|
||||||
|
:defer)
|
||||||
|
|
||||||
|
(defun my-php-mode-hook-fn()
|
||||||
|
(when (require 'company-php nil t)
|
||||||
|
(set (make-local-variable 'company-backends) '(company-ac-php-backend))
|
||||||
|
(company-mode t)))
|
||||||
|
|
||||||
|
(add-hook 'php-mode-hook 'my-php-mode-hook-fn)
|
||||||
|
|
||||||
;;; Org mode
|
;;; Org mode
|
||||||
|
|
||||||
(use-package org-bullets
|
(use-package org-bullets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user