unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [Newbie] Installing emacs mode
@ 2005-10-30  8:52 jeessy
  2005-10-30  9:45 ` Sebastian Tennant
       [not found] ` <mailman.13293.1130665689.20277.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: jeessy @ 2005-10-30  8:52 UTC (permalink / raw)


Hello !

I'm new in emacs 'world' and i want to install php/html/css mode on
windows. Someone can help me ?

Sorry about my english i'm a frenchie :>

Thanks alot.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Newbie] Installing emacs mode
  2005-10-30  8:52 [Newbie] Installing emacs mode jeessy
@ 2005-10-30  9:45 ` Sebastian Tennant
       [not found] ` <mailman.13293.1130665689.20277.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Sebastian Tennant @ 2005-10-30  9:45 UTC (permalink / raw)


jeessy@gmail.com wrote:
> Hello !
> 
> I'm new in emacs 'world' and i want to install php/html/css mode on
> windows. Someone can help me ?
> 
> Sorry about my english i'm a frenchie :>
> 
> Thanks alot.

Well, a common way of 'installing' modes in emacs is a case of putting the
mode's source code elisp files (.el) in a place where they can be found by
emacs, i.e., in a directory listed in the `load-path' variable, and then having
them autoloaded at start-up.

So, create an elisp directory in your home directory;

  /home/jeessy/elisp

for instance.  Next, add the following line to your /home/jeessy/.emacs file;

  (add-to-list 'load-path "/home/jeessy/elisp")

Most modes are entered using an interactive command such as 'M-x css-mode', and
assuming the elisp source is called 'css.el', you then need to add the following
line anywhere after the previous line;

  (autoload 'css-mode "css" "CSS editing mode" t nil)
                |       |            |
           M-x css-mode |            |
                        |            |
               source file css.el    |
                                     |
                            This can be anything

Save your .emacs file, quit emacs (assuming you've been using it to edit your
.emacs file) and re-launch.  You should be on your way.  Just type M-x css-mode
and enjoy :-)

sebyte

P.S. I'm not sure about Windows when it comes to home directories :-/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Newbie] Installing emacs mode
       [not found] ` <mailman.13293.1130665689.20277.help-gnu-emacs@gnu.org>
@ 2005-10-30 10:01   ` Bastien
  2005-10-31 14:32     ` jeessy
  0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2005-10-30 10:01 UTC (permalink / raw)


Sebastian Tennant writes:

>> Sorry about my english i'm a frenchie :>

You may also post to the french group fcae:
<fr.comp.applications.emacs> - au cas où!

-- 
Bastien

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
  2005-10-30 10:01   ` Bastien
@ 2005-10-31 14:32     ` jeessy
  2005-10-31 15:00       ` Sébastien Kirche
                         ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: jeessy @ 2005-10-31 14:32 UTC (permalink / raw)


Hi, thank you for your reply but on Bill gates'os  emacs version i
can't find the .emacs file :|

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
  2005-10-31 14:32     ` jeessy
@ 2005-10-31 15:00       ` Sébastien Kirche
  2005-10-31 15:09       ` Chris McMahan
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Sébastien Kirche @ 2005-10-31 15:00 UTC (permalink / raw)


At 15:10 on oct 31 2005, jeessy said :

> Hi, thank you for your reply but on Bill gates'os  emacs version i
> can't find the .emacs file :|

Maybe you don't have one yet ? Did you ever customized / installed
something else with emacs ?

Let's try with emacs : open ~/.emacs (C-x C-f ~/.emacs) the '~' sign
stands for your home directory. If the file exist Emacs will open it,
else it will create a new file.

And the ~ directory location depends on your windows system and the
environment : Emacs (and some other programs too) looks for the $HOME
environment variable.

If it is not defined, your ~ directory will probably be c:\ or
c:\documents and settings\your account\ 

To define the $HOME variable, look into c:\autoexec.bat for the 95/98/Me
family and add line with a SET HOME=path\of\your\choice

To define that variable with NT4/W2k/XP, look into the system icon in
the control panel, there is a button that lets you define the
environment.

Once the variable set you might have to reboot (95/98/Me) or simply
restart Emacs.

And as said Bastien : il y a un groupe *français* pour Emacs
(fr.comp.applications.emacs) ;o)

HTH.
-- 
Sébastien Kirche

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
  2005-10-31 14:32     ` jeessy
  2005-10-31 15:00       ` Sébastien Kirche
@ 2005-10-31 15:09       ` Chris McMahan
  2005-10-31 20:12       ` Sebastian Tennant
       [not found]       ` <mailman.13483.1130789814.20277.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 10+ messages in thread
From: Chris McMahan @ 2005-10-31 15:09 UTC (permalink / raw)


Open emacs on Windows, then load ~/.emacs

Emacs will automatically go to what is considered your home directory
and attempt to open this file. You can see which directory you're in
by executing a dired command from within this file (C-x d)

Alternately, you can set the home environment variable to the
directory of your choosing. I have cygwin installed, and have set the
home directory to c:/cygwin/home/cmcmahan. Works just like a unix
environment for me (with a few caveats).

I set up my environment variables from within my .tcshrc, then launch
emacs from that shell to inherit them on startup. I avoid messing with
the windows environment, but can customize my emacs and cygwin
variables to my heart's content!

- Chris

jeessy@gmail.com writes:

> Hi, thank you for your reply but on Bill gates'os  emacs version i
> can't find the .emacs file :|
>

-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | first_initiallastname@one.dot.net
  =================================================

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
  2005-10-31 14:32     ` jeessy
  2005-10-31 15:00       ` Sébastien Kirche
  2005-10-31 15:09       ` Chris McMahan
@ 2005-10-31 20:12       ` Sebastian Tennant
       [not found]       ` <mailman.13483.1130789814.20277.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 10+ messages in thread
From: Sebastian Tennant @ 2005-10-31 20:12 UTC (permalink / raw)


jeessy@gmail.com wrote:
> Hi, thank you for your reply but on Bill gates'os  emacs version i
> can't find the .emacs file :|

So you now have some useful Windows info.

In short you have to create your own ~/.emacs if you don't have one.
Emacs will read then read it at start-up.

It's such a plain and simple file, but don't call it ~/.emacs.txt !!!

It must be ~/.emacs (or $HOME/.emacs).

You can just copy and paste this if you like:

sebyte



;; my ~/.emacs
;;
;; elsip (emacs lisp) uses semi-colons for comments

(add-to-list 'load-path "/home/jeessy/elisp") ;change according to Windows'
                                              ;requirements

(autoload 'css-mode "css-mode" "CSS editing mode" t nil) ;"css-mode" corresponds
                                                         ;to the filename

(global-font-lock-mode 1) ;this will ensure syntax highlighting works

;; end of your ~/.emacs
;;
;; very soon this will be two pages long :-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
       [not found]       ` <mailman.13483.1130789814.20277.help-gnu-emacs@gnu.org>
@ 2005-10-31 22:11         ` Sébastien Kirche
  2005-10-31 23:21           ` Sebastian Tennant
       [not found]           ` <mailman.13501.1130801051.20277.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Sébastien Kirche @ 2005-10-31 22:11 UTC (permalink / raw)


At 21:10 on oct 31 2005, Sebastian Tennant said :

> ;; end of your ~/.emacs
> ;;
> ;; very soon this will be two pages long :-)

Only two pages ? Mine is currently 44kb long ;o)
-- 
Sébastien Kirche

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
  2005-10-31 22:11         ` Sébastien Kirche
@ 2005-10-31 23:21           ` Sebastian Tennant
       [not found]           ` <mailman.13501.1130801051.20277.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Sebastian Tennant @ 2005-10-31 23:21 UTC (permalink / raw)


Sébastien Kirche wrote:
> At 21:10 on oct 31 2005, Sebastian Tennant said :
> 
> 
>>;; end of your ~/.emacs
>>;;
>>;; very soon this will be two pages long :-)
> 
> 
> Only two pages ? Mine is currently 44kb long ;o)

I said _very soon_ ;-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Installing emacs mode
       [not found]           ` <mailman.13501.1130801051.20277.help-gnu-emacs@gnu.org>
@ 2005-11-01 11:21             ` jeessy
  0 siblings, 0 replies; 10+ messages in thread
From: jeessy @ 2005-11-01 11:21 UTC (permalink / raw)


Thanks thanks thanks !

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-01 11:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-30  8:52 [Newbie] Installing emacs mode jeessy
2005-10-30  9:45 ` Sebastian Tennant
     [not found] ` <mailman.13293.1130665689.20277.help-gnu-emacs@gnu.org>
2005-10-30 10:01   ` Bastien
2005-10-31 14:32     ` jeessy
2005-10-31 15:00       ` Sébastien Kirche
2005-10-31 15:09       ` Chris McMahan
2005-10-31 20:12       ` Sebastian Tennant
     [not found]       ` <mailman.13483.1130789814.20277.help-gnu-emacs@gnu.org>
2005-10-31 22:11         ` Sébastien Kirche
2005-10-31 23:21           ` Sebastian Tennant
     [not found]           ` <mailman.13501.1130801051.20277.help-gnu-emacs@gnu.org>
2005-11-01 11:21             ` jeessy

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).