Skip to main content

Questions tagged [php-mode]

Filter by
Sorted by
Tagged with
0 votes
1 answer
112 views

I had a short experience with emacs a few years ago (spacemacs), and now I want to get back to it seriously. Within literally 3 days, I built my own config that turned regular emacs into a full-...
A.J.'s user avatar
  • 1
0 votes
1 answer
87 views

I get "Function provided is already compiled" in minibuffer whenever I enter php-mode. Why and how to fix it? Debian bookworm, Emacs 28.2, php-mode 1.24.2. EDIT This is the backtrace @phils ...
user avatar
0 votes
1 answer
257 views

I'm very new to GNU Emacs. I use GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-05-31. Here is my ~/.emacs file. (setq-default tab-width 4) (require ...
Răzvan Birișan's user avatar
0 votes
0 answers
85 views

I work in Emacs 26.3 on Ubuntu The php file is treated in the fundamental mode: How to fix? Trying installation of the phps-mode package I installed the package phps-mode (https://github.com/...
Viesturs's user avatar
  • 875
0 votes
0 answers
208 views

I want emmet and php-mode work together. I want correct html indentation with php-mode enabled. I know web-mode but I don't like it.
Francesco Cadei's user avatar
0 votes
0 answers
591 views

I'm using emacs 27 compiled from git sources and company for code completion. I tried to set-up ac-php with company and php-mode, but when company tries tp perform auto-complete, I get the following ...
boehm_s's user avatar
  • 193
0 votes
1 answer
182 views

I discovered that in php-mode, syntactic indentation makes rigid indentation very slow when the marked region is big. When I disable syntactic indentation, rigid indentation is not slow anymore. So I ...
mikl's user avatar
  • 443
0 votes
0 answers
54 views

I have not been able to find a solution to this frustrating problem. Here is the situation and my questions are at the end: Given code that looks similar to this: $this->hello()->wootFluent()-&...
charlie mac's user avatar
3 votes
1 answer
127 views

GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) PHP-Mode: https://github.com/emacs-php/php-mode, Version: 1.21.1 I customized c-basic-offset to 2. When I open a php-File, php-mode is ...
Andreas H's user avatar
0 votes
1 answer
65 views

Simple question, how can I run the XDebug debugger with Geben without it stopping execution on the first line of the entry file. What I would like is for the scripts to run normally but only stop on a ...
aaron.cimolini's user avatar
2 votes
1 answer
213 views

In this case the basic offset is 4 and tabs mode is enabled. For example I am getting: if (! (true // Problem when the value starts inline. && false)) {} // I get two tabs, one per '(...
mikl's user avatar
  • 443
0 votes
2 answers
964 views

I am a Vim user for about a year now and I am curious to give Emacs a try. I discover Emacs for some days now and I would like to improve my PHP-editing experience. In Vim there is a plugin for ...
Anthony's user avatar
  • 111
2 votes
1 answer
342 views

I am currently using php-mode with spacemacs to write in php and recently I noticed this auto-indent behavior, namely pressing TAB. switch ($cond) { case "something": break; } Auto indenting ...
Rigotti's user avatar
  • 173
1 vote
1 answer
332 views

I'm using phpunit package https://github.com/nlamirault/phpunit.el and it works great with php files. But I have a simple php blog about refactoring ex: http://phprefactor.com/refactorings/decompose-...
slk500's user avatar
  • 473
0 votes
1 answer
279 views

I'm want to export php code snippets to html in org-mode. But as you see signs : '$' and '->' are highlighted by black color which looks terrible. Is it a some kind of error? Btw. is there any ...
slk500's user avatar
  • 473
1 vote
1 answer
564 views

Say I have PHP array like this: $arr = ['one', 'two', 'three']; and I want to convert it to $arr = [ 'one', 'two', 'three' ]; real quick. Is there any ready to use soluions?
neochar's user avatar
  • 13
2 votes
2 answers
826 views

How I can turn on highilighting php code in org-mode structure block?
slk500's user avatar
  • 473
1 vote
1 answer
53 views

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.
tjb's user avatar
  • 217
0 votes
1 answer
583 views

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 ...
Chris Stryczynski's user avatar
0 votes
1 answer
1k views

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 ...
azzamsa's user avatar
  • 664
1 vote
2 answers
1k views

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 ...
Michaël Le Barbier's user avatar
2 votes
1 answer
2k views

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, ...
SmartyLisp's user avatar
0 votes
1 answer
211 views

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) { ...
mikl's user avatar
  • 443
0 votes
2 answers
2k views

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). ...
mikl's user avatar
  • 443
2 votes
1 answer
821 views

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) ...
Damon Swayn's user avatar
1 vote
1 answer
322 views

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-...
Buzz's user avatar
  • 113
2 votes
1 answer
365 views

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->...
Oskar Persson's user avatar
12 votes
1 answer
5k views

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 ...
ReneFroger's user avatar
  • 3,752
0 votes
0 answers
611 views

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 ...
doctorate's user avatar
  • 1,909
1 vote
1 answer
159 views

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?
Rangi Lin's user avatar
  • 1,017
6 votes
2 answers
4k views

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.
paula's user avatar
  • 71
7 votes
2 answers
2k views

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 ...
cg433n's user avatar
  • 285