emacs: Do not indent code on new lines to arrow or equals sign

raw

README.rst

Problem:

$allOrders = Order::where('date', $date)
           ->leftJoin('contracts', 'contracts.id', 'contract_id')

Desired indentation:

$allOrders = Order::where('date', $date)
    ->leftJoin('contracts', 'contracts.id', 'contract_id')

Solution:

set-variable php-mode-lineup-cascaded-calls nil

https://github.com/emacs-php/php-mode/issues/745

Christian Weiske Christian Weiske
owner

History