Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
41 views

PHP no highlighting in org-mode code structure

How I can turn on highilighting php code in org-mode structure block?
1
vote
1answer
13 views

In Geben, how can you jump to the currently paused line from any buffer

When debugging PHP with Geben and xdebug, how do you jump to the currently paused line (The line with a => mark in the margin) from any buffer.
1
vote
1answer
100 views

PHP function descriptions not loaded. Try M-x php-extras-generate-eldoc

I keep getting this annoying error that pops up in a dialog every few seconds. I've tried running php-extras-generate-eldoc but that seems to point to http://doc.php.net/ which does not seem to be ...
1
vote
1answer
418 views

How to indent PHP code in PHP-mode?

I come from Java/Netbeans, and I can indent my Java code using alt+shift+f, I have searched through this site and other articles, but I didn't find a good way to indent PHP. What I found: using ...
1
vote
2answers
403 views

How to indent relative to start of the previous line rather than relative to the beginning of the expression?

In php-mode – and in many others I believe – indentation of an expression spreading over several lines is computed relative to the starting column of the expression rather than the column of the first ...
1
vote
1answer
1k views

PHP completion with Company does not work on local variables

I do have a strange issue when working on PHP files. I have company-mode installed and it works for function completion but not for local variables. For others languages such as Ruby or Lisp, ...
0
votes
1answer
148 views

How to indent php delimiter in php-mode?

php-mode is not indenting delimiter: <?php // Not indenting PHP delimiter if (true) { echo 'foo'; } How to indent delimiter? <?php // Indenting PHP delimiter if (true) { ...
0
votes
1answer
888 views

How to indent with tabs in php-mode?

I need to indent my code with (add-hook 'php-mode-hook 'php-enable-symfony2-coding-style) but using tabs for indenting (and spaces for aligning, see https://www.emacswiki.org/emacs/SmartTabs). ...
2
votes
1answer
419 views

Migrate php-mode configuration to web-mode

I currently have my php-mode configuration like so: (require 'php-mode) (add-hook 'php-mode-hook (lambda () (require 'ac-php-company) (company-mode t) ...
1
vote
1answer
178 views

How does web-mode recognize the php code or html code

It looks a quite magic that the web-mode could mix with php mode. A major mode could contain another major mode. This seems amazing. (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode)) (add-to-...
2
votes
1answer
235 views

php-mode indents anonymous function incorrectly

I have the latest Emacs and php-mode setup and this code does not get indented correctly $app->group('/route', function () use ($app) { echo 'hello'; }); Instead it looks like this $app->...
9
votes
1answer
3k views

How do I set up key bindings for modes in a specific Evil state?

I have a set of key bindings that I use for both web-mode and php-mode in insert mode (of Evil). So I cannot use set-local-map or something. Because in normal mode, the same keys will then call other ...
0
votes
0answers
433 views

Installation of php-mode on Windows?

I want to install the php-mode on my windows 7 machine. I went through documentation of the cited website and there is no mention of what should be extra required to run this mode. Obviously, the PHP ...
1
vote
1answer
109 views

How do I stop emacs open certain files in conf-mode?

By default, my Emacs opens config.php in conf-mode. It looks like conf-mode uses a set of regular expressions to match the filename, but I can't figure out how to make it open in php-mode. Any idea?
4
votes
2answers
2k views

PHP intellisense in emacs

Is it possible to obtain a package which supports Intellisense PHP in emacs? As I've set up cedet now and I would like to add autocomplete for PHP code in emacs. I know you can do it in vim.
7
votes
2answers
2k views

“Symbol's function definition is void: cl-macroexpand-all” when trying to install php-mode

I'm trying to install php-mode, but I keep encountering this error when I run M-x php-mode: Symbol's function definition is void: cl-macroexpand-all The error persists whether I install php-mode via ...