Browse Source

Set indent level for php-mode

pull/5/head
10sr 9 years ago
parent
commit
f4ba9a0cf3
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      emacs.el

+ 5
- 0
emacs.el View File

@@ -1205,6 +1205,11 @@ found, otherwise returns nil."
;; (gtags-mode 1))
))))

(when (autoload-eval-lazily 'php-mode)
(add-hook 'php-mode-hook
(lambda ()
(setq c-basic-offset 2))))

(when (autoload-eval-lazily 'js2-mode)
;; currently do not use js2-mode
;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))


Loading…
Cancel
Save