Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] Emacs PHP Mode
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Aug 11, 2005 1:53 pm    Post subject: [OT] Emacs PHP Mode Reply with quote

Hallo,

ich arbeite auf einem Uni-Server an PHP-Seiten mit Emacs.
Ich will PHP-Mode nutzen und habe daher in meine Homeverzeichnis die Datei .emacs angelegt:
Code:
(global-font-lock-mode t)

(standard-display-european 1) ;deutsche sonderzeichen
(set-input-mode
  (car (current-input-mode))
  (nth 1 (current-input-mode)) 0)
(global-set-key [delete] 'delete-char)

(global-set-key "\e[3~" (quote delete-char))
;;(global-set-key "\e[C" (quote beginning-of-line))
;;(global-set-key "\e[D" (quote end-of-line))

 ;;====================================================================
 ;; PHP Mode
 ;;====================================================================
(setq load-path (cons "/dfs/u/m/m_scho14/.emacs_conf/" load-path))

(autoload 'php-mode "php-mode" "PHP editing mode" t)
(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc\\'" . php-mode))
(add-to-list 'auto-mode-alist '("\\.php4\\'" . php-mode))

in /dfs/u/m/m_scho14/.emacs_conf/ liegt die php-mode-Datei:
Code:

ls -l /dfs/u/m/m_scho14/.emacs_conf/
total 80
-rwx------   1 m_scho14 u0dawin       39455 Jun 03 18:16 php-mode.el


Aber ich kriege weder Syntax-Highlighting zu sehen, noch rückt Emacs nicht automatisch ein.
Außerdem Funktionieren die Pos1 & Ende-Tasten nicht korrekt (ich kriege ein H bzw. ein F, wenn ich sie drücke)

Hat jemand eine Idee?

Danke für Hinweise
Manuel
_________________
Build your own live cd with catalyst 2.0!


Last edited by manuels on Thu Aug 11, 2005 2:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Thu Aug 11, 2005 2:06 pm    Post subject: Re: Emacs PHP Mode Reply with quote

manuels wrote:
ich arbeite auf einem Uni-Server an PHP-Seiten mit Emacs.
Wahrscheinlich willst Du's nicht hören, aber was soll's: Nimm Vim! :mrgreen:

Was die Home- und End-Tasten angeht, warum sind die zwei Zeilen denn auskommentiert bei Dir?

Und mach' bitte ein [OT] in den Titel; auch wenn Deine Uni Gentoo fährt, ist das eigentlich nichts für hier...
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Aug 11, 2005 2:15 pm    Post subject: Reply with quote

Das weiss ich auch nicht mehr, aber wenn ich sie wieder ent-kommentiere, funktioniert es auch nicht.:cry:

und vim ist auf dem Server nicht installiert.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Thu Aug 11, 2005 2:30 pm    Post subject: Re: [OT] Emacs PHP Mode Reply with quote

Code:
(global-set-key "\e[F" (quote beginning-of-line))
(global-set-key "\e[H" (quote end-of-line))
Wie sieht's denn damit aus? Ich hab' mich doch in meiner .zshrc mal mit sowas rumgeschlagen...
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Aug 11, 2005 3:04 pm    Post subject: Reply with quote

nee. funktioniert leider auch nicht.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum