Skip to content

Instantly share code, notes, and snippets.

@bradclawsie
Created July 12, 2011 20:29
Show Gist options
  • Save bradclawsie/1078900 to your computer and use it in GitHub Desktop.
Save bradclawsie/1078900 to your computer and use it in GitHub Desktop.
hooking into the php mode in emacs
;; php
(load "~/.el/lang/php-mode.el")
(defun my-php-mode-hook ()
(c-set-offset 'substatement-open 0)
(c-set-offset 'statement-case-open 0)
(c-set-offset 'case-label '+)
(setq tab-width 4)
(setq c-basic-offset 4)
(setq c-auto-newline nil)
(setq indent-tabs-mode nil)
(add-hook 'write-file-functions 'php-delete-trailing-blank-lines)
t)
(add-hook 'php-mode-hook 'my-php-mode-hook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment