* PHP syntax highligtning in Emacs
@ 2004-11-09 18:54 velle
2004-11-10 12:25 ` J. Alejandro Noli
0 siblings, 1 reply; 3+ messages in thread
From: velle @ 2004-11-09 18:54 UTC (permalink / raw)
Hi
I`m generally new to the linux world, but trying to convert. I have tried a little Java programming with emacs, it has perfect indenting etc., when I save as .java. I also want to program php, but emacs wont make any indention at all when using tabulator. I`ve tried looking at different emacs help pages but they are either really really long or I don't quite understand.
I`ve found the php-mode on http://sourceforge.net/projects/php-mode/. But it seems to be only source and I don't have any idea how to compile.
I use GNU Emacs 21.3.1 on PII with Suse 9.1.
I would apreciate if somebody could tell me the easiest way to get, install and setup a proper way of php indenting (and high lightning) in Emacs.
Velle
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PHP syntax highligtning in Emacs
2004-11-09 18:54 velle
@ 2004-11-10 12:25 ` J. Alejandro Noli
0 siblings, 0 replies; 3+ messages in thread
From: J. Alejandro Noli @ 2004-11-10 12:25 UTC (permalink / raw)
Cc: help-gnu-emacs
El martes 09, a las 19:54, velle@velle.dk escribió:
> Hi
>
> I`m generally new to the linux world, but trying to convert. I have tried a little Java programming with emacs, it has perfect indenting etc., when I save as .java. I also want to program php, but emacs wont make any indention at all when using tabulator. I`ve tried looking at different emacs help pages but they are either really really long or I don't quite understand.
>
> I`ve found the php-mode on http://sourceforge.net/projects/php-mode/. But it seems to be only source and I don't have any idea how to compile.
I think you don't. Try to install under /usr/share/emacs/site-lisp or
something, and follow the instructions inside the file. You have to
untar it.
I'm really new to Emacs and linux (about 2 years, and english is not my
first language) and this is my first message to the list.
>
> I use GNU Emacs 21.3.1 on PII with Suse 9.1.
>
> I would apreciate if somebody could tell me the easiest way to get, install and setup a proper way of php indenting (and high lightning) in Emacs.
>
> Velle
>
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
--
Saludos,
- J. Alejandro Noli -
~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PHP syntax highligtning in Emacs
[not found] <mailman.1697.1100023448.8225.help-gnu-emacs@gnu.org>
@ 2004-11-10 14:02 ` Benjamin Rutt
0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Rutt @ 2004-11-10 14:02 UTC (permalink / raw)
<velle@velle.dk> writes:
> Hi
>
> I`m generally new to the linux world, but trying to convert. I have
> tried a little Java programming with emacs, it has perfect indenting
> etc., when I save as .java. I also want to program php, but emacs wont
> make any indention at all when using tabulator. I`ve tried looking at
> different emacs help pages but they are either really really long or I
> don't quite understand.
>
> I`ve found the php-mode on
> http://sourceforge.net/projects/php-mode/. But it seems to be only
> source and I don't have any idea how to compile.
>
> I use GNU Emacs 21.3.1 on PII with Suse 9.1.
>
> I would apreciate if somebody could tell me the easiest way to get,
> install and setup a proper way of php indenting (and high lightning)
> in Emacs.
Welcome to emacs-land. I have never used php-mode. But in general,
to install .el files, you merely place them in your emacs `load-path'.
Here's what I would do (mixture of shell and emacs commands):
1) mkdir ~/elisp
2) cp php-mode.el ~/elisp
3) in emacs, Ctrl-x Ctrl-f ~/.emacs RET (to open your .emacs file)
4) add the lines to your .emacs:
(add-to-list 'load-path "~/elisp")
(require 'php-mode)
(global-font-lock-mode 1)
then restart emacs, and you should have what you need, font hilighting
and all. You don't need to complile .el files, you can if you want
though (it makes some modes faster but not all).
--
Benjamin Rutt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-10 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1697.1100023448.8225.help-gnu-emacs@gnu.org>
2004-11-10 14:02 ` PHP syntax highligtning in Emacs Benjamin Rutt
2004-11-09 18:54 velle
2004-11-10 12:25 ` J. Alejandro Noli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).