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

Loading…
Cancel
Save