You are not logged in.

#1 2009-07-22 12:19:29

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 89

Adventure with Emacs

Is there any Emacs user to give me some hints about this program. I wish to use it for Web development, and i reed that i need Nxhtml mode. I can't find this package in ofical repos nor in AUR?


"The flesh knows it suffers even when the mind has forgotten."

Offline

#2 2009-07-22 13:53:48

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: Adventure with Emacs

I believe nXhtml is included by default. NXhtml can be found here on ourcomments.org. I do not have it installed at the moment but I believe it just a matter of (load "") -ing some files. The readme should provide all the details.

I rarely edit html files but when I have done nXhtml have been quite powerful. I was very impressed with build in validation.

For simple html-pages, where you do not want to get your hands dirty, I would suggest org-mode. It is distributed with Emacs -- at least in v23. I would suggest using v23 (cvs)

Also, by default emacs keybinding can be a little scary. I have been using emacs for several years but I still use cua-mode (C-c is copy as in Windows etc.).

Emacs is great! I hope your enjoy your trip.

Cheers,
Rasmus


Arch x64 on Thinkpad X200s/W530

Offline

#3 2009-07-22 21:04:09

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 89

Re: Adventure with Emacs

How can i know is nXhtml installed? When i open .php file it opens it in HTML mode. I try to add  -*-nXhtml-*- to te beginning of file but then it opens Fundamental mode. I have installed 22.3. version of Emacs.


"The flesh knows it suffers even when the mind has forgotten."

Offline

#4 2009-07-24 04:39:18

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Adventure with Emacs

gabriel9 wrote:

How can i know is nXhtml installed? When i open .php file it opens it in HTML mode. I try to add  -*-nXhtml-*- to te beginning of file but then it opens Fundamental mode. I have installed 22.3. version of Emacs.

I think you'll have to download it. It's not bundled with Emacs, as far as I can tell.

Offline

#5 2009-07-24 04:57:02

&#32 Greg
Member
Registered: 2009-02-08
Posts: 80

Re: Adventure with Emacs

http://www.emacswiki.org/emacs/NxhtmlMode

That should probably help...

Offline

#6 2009-07-24 13:09:27

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 89

Re: Adventure with Emacs

I did it, all working now. My adventure may continue.

This is what i did:
Install Emacs CVS version.
Download nXhtml mode from http://ourcomments.org/cgi-bin/emacsw32-dl-latest.pl
fallow instructions from readme.txt
If there is no .emacs  file in your home folder, just create one.

Pozdrav.


"The flesh knows it suffers even when the mind has forgotten."

Offline

#7 2009-07-26 13:41:28

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 89

Re: Adventure with Emacs

Emacs is great, it can do so much with so little resources. And it's fast when you learn shortcuts.
There is a little thing that bothering me:
When i run shell in Emacs it don't work nice: there is no completions for second word, sudo pacma and when i press <TAB> x2 it says: "No completions of pacma."


"The flesh knows it suffers even when the mind has forgotten."

Offline

#8 2009-07-26 13:58:29

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Adventure with Emacs

I know it isn't what you actually asked, but Emacs has also a terminal emulator, so you can use Emacs and still use your favorite shell.

M-x term

Even curse apps run fine in this terminal.


(lambda ())

Offline

#9 2009-07-26 14:42:01

madalu
Member
Registered: 2009-05-05
Posts: 217

Re: Adventure with Emacs

gabriel9 wrote:

Emacs is great, it can do so much with so little resources. And it's fast when you learn shortcuts.
There is a little thing that bothering me:
When i run shell in Emacs it don't work nice: there is no completions for second word, sudo pacma and when i press <TAB> x2 it says: "No completions of pacma."

Again, not a direct answer to your question, but there are a few terminal emulators for emacs. See this Emacs Wiki page for a complete list:

http://www.emacswiki.org/emacs/CategoryShell

And for something completely different, you can always try eshell.

Now that I think of it, I'm not sure I get completions on the second word (e.g., sudo pacm...) when I use bash in urxvt. I'll have to look into that.

Last edited by madalu (2009-07-26 14:49:21)

Offline

#10 2009-07-27 01:19:34

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: Adventure with Emacs

madalu wrote:

I'm not sure I get completions on the second word (e.g., sudo pacm...) when I use bash in urxvt. I'll have to look into that.

I just checked, and I don't. sad

Offline

#11 2009-07-27 14:58:55

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 89

Re: Adventure with Emacs

Works great with term,there also some great mods for shell. Thank you.
Where can i find setup for color in nXhtml? I need to turn of background color, i don't see very well.
Pozdrav.


"The flesh knows it suffers even when the mind has forgotten."

Offline

Board footer

Powered by FluxBB