Menu

#3 How to install

closed
nobody
None
5
2007-11-05
2002-02-08
Anonymous
No

Hi,
I use Emacs under Win2K and wanted to install php-mode but I
don´t know how (I´m quite a newbie with Emacs). To put the file in the
"site-lisp" directory is clear but how can I make Emacs load and use
the mode? I do not find a .emacs file, and under Win2K I cannot create a
file with such a name.

Greetings

Philipp Schuchall

Discussion

  • Nobody/Anonymous

    Logged In: NO

    ;;; Usage

    ;; Place this file in your Emacs lisp path (eg. site-lisp)
    ;; and add to your .emacs file:
    ;; (load-library "php-mode-102")

    ;; If you want colorization, turn on global-font-lock or
    ;; add this to your .emacs:
    ;; (add-hook 'php-mode-user-hook 'turn-on-font-lock)

    Normaly, emacs will look for a .emacs file on c:\

    Hope this works :)

     
  • Nobody/Anonymous

    Logged In: NO

    If you look at the documentation on nt-emacs it tells you
    how to change registry-entries in the registry database to
    set the home-dir for emacs. Then you put the .emacs file
    there. And yes you <u>can</u> make a .emacs file in
    windows you just have to swich "hide extensions for known
    file types" off in folder settings.

     
  • Nobody/Anonymous

    Logged In: NO

    For nt-emacs you can also name your .emacs file '_emacs'.
    And here's how I load my php-mode:

    (autoload 'php-mode "php-mode" "PHP Editing Mode" t)
    (add-to-list 'auto-mode-alist '("\\.php$" . php-mode))

     
  • Nobody/Anonymous

    Logged In: NO

    Hi,

    I'm using emacs with W2K too, and had the same problem.

    After reading a lot of emacs' help, I found out that emacs
    searches per default in the directory 'c:\', after looking for an
    environment variable %HOME% which I set to my
    c:\cygwin\home\maltem (my home directory under cygwin)

    and put my .emacs there.

    I hope this will help people with the same problem.

    ---

    Nothing so needs reforming as other people's habits.

    -- Mark Twain

     
  • Brad Collins

    Brad Collins - 2003-11-24

    Logged In: YES
    user_id=5665

    You should change the installation notes in the commentary
    -- I wasn't able to load it either.

    Otherwise great work!

    Now if someone would just write a mode for YAML....

     
  • Nobody/Anonymous

    Logged In: NO

    I did use these lines in my .emacs file:
    (require 'php-mode)
    (add-hook 'php-mode-user-hook 'turn-on-font-lock)

     
  • Nobody/Anonymous

    Logged In: NO

    You can save a file named .emacs in Windows by going to
    Notepad and when you save, change the Save As Type to All.
    You can then save nameless files. Or you could just save
    the .emacs file in emacs. I don't remember all the places
    emacs searches for the .emacs, but I put mine in c:/.emacs.
    Then just follow directions in the php-mode.el file
    (restart emacs to see the effects take place).

     
  • Aaron S. Hawley

    Aaron S. Hawley - 2007-11-05
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.