Browse Source

Add php-mode

master
Riyyi 4 years ago
parent
commit
aee4b6ae78
  1. 14
      .emacs.d/config.org

14
.emacs.d/config.org

@ -32,6 +32,7 @@
- [[#lsp][LSP]]
- [[#yasnippet][YASnippet]]
- [[#cc][C/C++]]
- [[#php][PHP]]
- [[#prettify][Prettify]]
- [[#rss][RSS]]
- [[#general-1][General]]
@ -444,6 +445,16 @@ Irony requires M-x =irony-install-server=.
;; company-irony-c-headers
#+END_SRC
*** PHP
#+BEGIN_SRC emacs-lisp
(use-package php-mode
:defer t
:hook (php-mode . (lambda () (progn
(setq indent-tabs-mode t)
(setq lsp-ui-doc-enable t)))))
#+END_SRC
*** Prettify
#+BEGIN_SRC emacs-lisp
@ -943,9 +954,6 @@ Evil command aliases.
;; C++ // style comments in c-mode
(add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0)))
;; PHP, set correct tab mode
(add-hook 'php-mode-hook (lambda () (setq indent-tabs-mode t)))
;; LaTeX, set correct tab mode
(add-hook 'latex-mode-hook (lambda () (setq indent-tabs-mode t)))
#+END_SRC

Loading…
Cancel
Save