nXhtml is an addon to Emacs for editing XHTML, PHP and similar things.
Questions tagged [nxhtml]
24 questions
13
votes
4 answers
Underscore as part of word for forward-word not working
I am trying to make underscores get treated as part of the word for the forward/backward-word function as described here and here. I am specifically trying to get this to work for nxhtml mode, but would really like it to work like this for all…

oiler_no11
- 155
- 1
- 7
10
votes
2 answers
Emacs, nxhtml how to highlight or jump to the closing html tag?
I'm using emacs with nxhtml to edit my HTML files but I can't find out how to highlight or jump to the closing HTML tag?
It sounds like an easy and stupid question but i really can't find it. Maybe I'm not looking for the right thing.

yokoloko
- 2,820
- 3
- 20
- 27
5
votes
1 answer
Having eruby-nxhtml-mumamo-mode be set every time I open a .html.erb file
I downloaded nxhtml and unzip it. I then put this in my .emacs file.
(add-to-list 'load-path "~/nxhtml/util")
(require 'mumamo-fun)
(setq mumamo-chunk-coloring 'submode-colored)
(add-to-list 'auto-mode-alist '("\\.rhtml\\'" .…

SteVwonder
- 175
- 1
- 1
- 8
4
votes
1 answer
Set a mode from regexp to regexp?
This is a question about MuMaMo. If one adds to the end of the nxhtml/util/mumamo-fun.el the following code:
(defun rst-bk-latex-directive-chunk (pos min max)
"Find math chunks. Return range and 'latex-mode.
See `mumamo-find-possible-chunk' for…

Adobe
- 12,967
- 10
- 85
- 126
3
votes
1 answer
Differences between nxml-mode and nxhtml-mode?
I installed nxml-mode and then nxhtml-mode (and they look great, real-time validation right inside my favorite editor is just sweet).
I understand that an XHTML file is an XML file and so I can use "just" nxml-mode to edit the XHTML. But I'm a bit…

Cedric Martin
- 5,945
- 4
- 34
- 66
3
votes
1 answer
Can pony mode be used with django-html-mumamo-mode?
I'm just beginning to use Django and I want to use a mode which supports the framework. I browsed through the django wiki and found out that there are a lot of emacs modes for Django, which made it hard for me to decide which mode to use. Pony mode…

avendael
- 2,459
- 5
- 26
- 30
3
votes
0 answers
nXhtml (No javascript-mode/eruby-javascript)
I've just installed nXhtml by downloading their zip file, extracting the archive into my home directory and adding (load "/home/spinlock/nxhtml/autostart.el") to my .emacs file. My problem is that when I try to edit a .js.erb file, I'm getting the…

spinlock
- 3,737
- 4
- 35
- 46
3
votes
2 answers
How to configure Emacs (v 23) with nxhtml to follow Kohana coding standards?
I am trying to configure Emacs v23 to follow Kohana coding standards for PHP. I am using Emacs with nxhtml plugin.
I can see the indent-tabs-mode is set to t in the buffer, but when I press tab to indent the code, I see two spaces are inserted not…

Sabya
- 11,534
- 17
- 67
- 94
3
votes
4 answers
How can I make emacs load nXhtml only when php/html files are open and prevent it from loading at startup
So in order to optimize emacs startup time I prefer to encapsualte all mods within a hook or an eval-after-load. So I figured out python, cpp and latex but am stuck with nXhtml. I tried the following:
(eval-after-load "HTML-mode"
'(progn
(load-file…

octi
- 1,470
- 1
- 17
- 28
2
votes
2 answers
nXhtml is not highlighting PHP code, gives errors on loading
I'm using the latest nXhtml checked out from the repo, and using GNU Emacs version 24.0.91.1. When I open a PHP file it shows as un-syntax-highlighted text, and I get a compile error:
Error: Wrong type argument: number-or-marker-p, nil
and a…

MDCore
- 17,583
- 8
- 43
- 48
2
votes
1 answer
Receiving Flymake error in Windows & Ubuntu Emacs for PHP
I am receiving this error.
Error (flymake): Flymake: Failed to launch syntax check process 'php' with args (-f test_flymake.php -l): Searching for program: no such file or directory, php. Flymake will be switched OFF
I am on windows 7 with emacs 24…

sayth
- 6,696
- 12
- 58
- 100
2
votes
1 answer
XHTML / JSF boilerplate code in Emacs
I am using Emacs to write XHTML pages in a JSF project and the amount of boilerplate code that has to go at the header of each XHTML file is hard-to-type, ugly and error-prone. E.g:

Marcus Junius Brutus
- 26,087
- 41
- 189
- 331
1
vote
1 answer
Emacs, HTML5 not validating
I'm Writing a JQuery Mobile / PhoneGap app using Emacs 23.3. I'm using nXhtml, but for example, HTML5 data attributes are not validated. I'd like to use completion as well.
What's the recommended mode to use?
Does anyone actually use Emacs to edit…

23min
- 11
- 2
1
vote
2 answers
Altering what Emacs loads depending upon file being editted
Currently, to use a certain plugin (nxhtml), I place the following statements in my .emacs,
(load "/autostart.el")
Therefore everytime I open emacs, this is loaded, regardless of whether I am editing a file that the plug-in is…

countunique
- 4,068
- 6
- 26
- 35
1
vote
1 answer
Easy testing of HTML with emacs
Suppose I type some HTML code into emacs and would like to preview its result in a web browser without having type something outside of emacs. What's the best way to do this?

countunique
- 4,068
- 6
- 26
- 35