diff options
author | 2018-06-19 10:40:09 -0700 | |
---|---|---|
committer | 2018-06-19 10:40:09 -0700 | |
commit | 0179fa3abe05c3837599facfa99eb2cabb78bc6f (patch) | |
tree | fdd15ba0761228bc1165be5450b18e6c202efd6a /emacs/.emacs.d/init/oni-php-mode-init.org | |
parent | 67c2b8ed1f8d5be62f8dff6d37a32faf9d45a503 (diff) | |
download | new-dotfiles-0179fa3abe05c3837599facfa99eb2cabb78bc6f.tar.gz new-dotfiles-0179fa3abe05c3837599facfa99eb2cabb78bc6f.zip |
Stop using Org for PHP config
Diffstat (limited to 'emacs/.emacs.d/init/oni-php-mode-init.org')
-rw-r--r-- | emacs/.emacs.d/init/oni-php-mode-init.org | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/emacs/.emacs.d/init/oni-php-mode-init.org b/emacs/.emacs.d/init/oni-php-mode-init.org deleted file mode 100644 index 17b6ce7..0000000 --- a/emacs/.emacs.d/init/oni-php-mode-init.org +++ /dev/null @@ -1,51 +0,0 @@ -#+TITLE: PHP - -Turn on electric pairing in php-mode. - -#+BEGIN_SRC emacs-lisp - (add-hook 'php-mode-hook 'electric-pair-local-mode) -#+END_SRC - -Turn on electric indenting in php-mode. - -#+BEGIN_SRC emacs-lisp - (add-hook 'php-mode-hook 'electric-indent-local-mode) -#+END_SRC - -Enable flycheck in php-mode. - -#+BEGIN_SRC emacs-lisp - (add-hook 'php-mode-hook 'flycheck-mode) -#+END_SRC - -Reset =require-final-newline= because the default php-mode style -disables it. - -#+BEGIN_SRC emacs-lisp - (defun oni:set-require-final-newline () - (setq require-final-newline t)) - - (add-hook 'php-mode-hook 'oni:set-require-final-newline) -#+END_SRC - -Enable company mode for completion. - -#+BEGIN_SRC emacs-lisp - (add-hook 'php-mode-hook 'company-mode) -#+END_SRC - -Load a PHP-specific completion back-end when company mode is loaded. - -#+BEGIN_SRC emacs-lisp - (eval-when-compile (require 'company)) - - (with-eval-after-load 'company - (require 'company-php) - (add-to-list 'company-backends 'company-ac-php-backend)) -#+END_SRC - -Enable ggtags-mode for tags browsing with global. - -#+BEGIN_SRC emacs-lisp - (add-hook 'php-mode-hook 'ggtags-mode) -#+END_SRC |