Skip to content
Snippets Groups Projects

Dev improve php mode indentation

Merged Laurent requested to merge dev-improve-php-mode-indentation into master
Compare and
+ 27
4
Preferences
Compare changes
@@ -95,18 +95,41 @@
(phafi-init-menu)
(phafi-enable-autotest)
(setq
tab-width 2
magit-diff-options '("-w")
indent-tabs-mode t
flymake-mode t
c-basic-offset 2
compilation-error-regexp-alist '( ("^\\(/.*\\):\\([0-9]+\\)$" 1 2)
("^.* \\(/.*\\):\\([0-9]+\\)" 1 2)
("PHP\s+[0-9]+\. [^/]* \\([^:]+\\):\\([0-9]+\\)" 1 2)
("in \\(/.*\\) on line \\([0-9]+\\)" 1 2) )
geben-pause-at-entry-line nil
geben-show-breakpoints-debugging-only nil)
)
(phafi-enable-bokeh-coding-style)
)
(c-add-style
"bokeh"
'((c-basic-offset . 2)
(c-offsets-alist . ((case-label . +)
(topmost-intro-cont . (first c-lineup-cascaded-calls
php-lineup-arglist-intro))
(brace-list-intro . +)
(brace-list-entry . c-lineup-cascaded-calls)
(arglist-close . 0)
(arglist-intro . c-lineup-arglist-intro-after-paren)
(arglist-cont . c-lineup-arglist-intro-after-paren)
(arglist-cont-nonempty . c-lineup-arglist-intro-after-paren)
(knr-argdecl . [0])
(statement-cont . (first c-lineup-cascaded-calls +))))))
(defun phafi-enable-bokeh-coding-style ()
"Makes php-mode use coding styles that are preferable for working with Bokeh."
(interactive)
(setq tab-width 2
indent-tabs-mode t
fill-column 78
show-trailing-whitespace t)
(add-hook 'before-save-hook 'delete-trailing-whitespace nil t)
(c-set-style "bokeh"))
(defun phafi-enable-autotest()