View previous topic :: View next topic |
Author |
Message |
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Thu Aug 11, 2005 1:53 pm Post subject: [OT] Emacs PHP Mode |
|
|
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 |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Thu Aug 11, 2005 2:06 pm Post subject: Re: Emacs PHP Mode |
|
|
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!
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 |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Thu Aug 11, 2005 2:15 pm Post subject: |
|
|
Das weiss ich auch nicht mehr, aber wenn ich sie wieder ent-kommentiere, funktioniert es auch nicht.
und vim ist auf dem Server nicht installiert. _________________ Build your own live cd with catalyst 2.0! |
|
Back to top |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Thu Aug 11, 2005 2:30 pm Post subject: Re: [OT] Emacs PHP Mode |
|
|
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 |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
|
|