Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
emacs AAAAAAAAAAAAAHHH!!!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="babydoe, post: 4784139"] I'll start you off : 1. download the file 'mode-compile.el' [URL]http://www.tls.cena.fr/~boubaker/distrib/mode-compile.el[/URL] and store it in your site-lisp directory. 2. download the file perl-54-info.tar.gz from CPAN and extract the files and store in your 'info' directory. 3. in your info directory open up the 'dir' file and add the following line at the bottom of the file. Development * Perl Modules: (pm). * Perl - Practical Extraction and Report Language: (perl). (be careful that the very last line in the 'dir' file is a blank line otherwise it won't be read by Emacs) 4. in your site-lisp directory create a file 'default.el' (you will have to look at variable exec-path to point to your perl and Emacs binaries) ;; ------------%<--------------------------------------------------------- ;; default.el should contain any convenience settings ;; ;; ;; look and feel customizing ;; (setq debug-on-error t) (setq default-frame-alist '((top . 15)(left . 15) ; indent for cascade frames (width . 80)(height . 30) (cursor-color . "Red") (cursor-type . bar) (foreground-color . "black") (background-color . "ivory") (font . "-*-Courier New-normal-r-*-*-11-82-96-96-c-*-iso8859-1"))) (set-face-background 'modeline "navy") (set-face-foreground 'modeline "gold") (set-face-font 'italic "-*-Courier New-normal-i-*-*-11-82-96-96-c-*-iso8859-1") (set-face-font 'bold "-*-Courier New-bold-r-*-*-11-82-96-96-c-*-iso8859-1") (set-face-font 'bold-italic "-*-Courier New-bold-i-*-*-11-82-96-96-c-*-iso8859-1") (setq initial-frame-alist '((top . 0) (left . 0))) ;;; coloring syntax (global-font-lock-mode t) (setq font-lock-maximum-decoration 3) ;; set exec-path explicitly, and then Sync exec-path to PATH (setq exec-path '("c:/perl/bin" "c:/Emacs/bin")) (setenv "PATH" (mapconcat 'identity exec-path path-separator)) (require 'cperl-site) (require 'mode-compile-site) ;; ------------%<--------------------------------------------------------- 5. also in site-lisp directory create 'cperl-site.el' and paste the following into it (changing for your CPERL5LIB) ;; ------------%<--------------------------------------------------------- ;; CPERL-SITE.EL ;; ;; Make cperl-mode the normal mode for Perl (setenv "PERL5LIB" "c:/perl/lib/;c:/perl/site/lib") (require 'cperl-mode) (defalias 'perl-mode 'cperl-mode) (setq cperl-hairy t) (setq auto-mode-alist (cons '("\\.plx$" . cperl-mode) auto-mode-alist)) (provide 'cperl-site) ;; CPERL-SITE ends here. ;; ------------%<--------------------------------------------------------- 6. create 'mode-compile-site.el' is site-lisp and paste ;; ------------%<--------------------------------------------------------- ;;; MODE-COMPILE-SITE --- (defvar mode-compile-map (make-sparse-keymap) "Keymap for mode-compile mode.") (setq mode-compile-expert-p t) (condition-case err (progn (require 'easymenu) (easy-menu-define mode-compile-menu mode-compile-map "Call compilation according to mode" '("Compile..." ["Run" mode-compile t] ["Next error" next-error t] ["Kill" mode-compile-kill t]))) (error (message "%s" err))) (easy-menu-change '("tools") "compile" mode-compile-menu) (autoload 'mode-compile "mode-compile" "Command to compile current buffer file dependently of the major mode" t) (autoload 'mode-compile-kill "mode-compile" "Command to kill a compilation launched by `mode-compile'" t) (global-set-key "\C-cc" 'mode-compile) (global-set-key "\C-ck" 'mode-compile-kill) (provide 'mode-compile-site) ;;; END MODE-COMPILE-SITE.EL --- ;; ------------%<--------------------------------------------------------- 7. You should now be able to run perl by typing 'ctrl-C c' 8. An aside, on win32, I use TEI Emacs : it's the duck's guts. [URL]http://www.tei-c.org/Software/tei-emacs/[/URL] Also useful are some ported Unix tools (msys): [URL]http://www.mingw.org/msys.shtml[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
emacs AAAAAAAAAAAAAHHH!!!
Top