Re: [cormanlisp] 'Naïve' indenting in the IDE
John Thingstad <[email protected]> Wed, 02 Jul 2003 01:34:34 +0200
| Newsgroups | gmane.lisp.corman |
|---|---|
| Organization | private |
| Message-ID | <[email protected]> |
On Mon, 30 Jun 2003 17:15:18 +1200, John Pallister <[email protected]> wrote: > I think Corman Lisp is great, which is why I'm using it for my "killer > app." However, I need some sort of Lisp editing solution that (a) allows > interaction with the REPL, and (b) indents my Lisp source properly, where > "properly" is defined as "how Emacs does it when told to use the common- > lisp-indent-function." I've found syntax colouring pretty habit-forming, > as well. > > Given that I can't get XEmacs+ILISP to work with CCL (and I haven't seen > any reports of anyone else getting it to work either), I'm currently > saving my file in XEmacs and (load "...") it in Roger's IDE, and cutting > and pasting bits of text back and forth, which is definitely not the > Right Thing. I have Corman working with Emacs 20. Should work with XEmacs. Try adding some of this to your .emacs file.. ;;; ilisp.emacs -- (require 'completer) ;;; Uncomment the following lines if you want TMC completion (see ;;; completion.el among the Emacs ELisp sources). (load "completion") (initialize-completions) ;; Corman (autoload 'cormanlisp "ilisp" "Inferior Corman Common Lisp." t) (setq *cormanlisp-dir* "C:/PROGRA~1/CORMAN~1/CORMAN~1.0/") (setq cormanlisp-program (concat *cormanlisp-dir* "clconsole.exe" " -image " *cormanlisp-dir* "cormanEmacs.img")) ;;; This makes reading a Lisp or Scheme file load in ILISP. (set-default 'auto-mode-alist (append '(("\\.lisp$" . lisp-mode) ("\\.lsp$" . lisp-mode) ("\\.cl$" . lisp-mode)) auto-mode-alist)) (add-hook 'lisp-mode-hook '(lambda () (require 'ilisp))) ;;; Configuration of Erik Naggum's HyperSpec access package. ;; If you have a local copy of the HyperSpec, set its path here. (setq common-lisp-hyperspec-root "C:/PROGRA~1/CORMAN~1/CORMAN~1.0/HyperSpec/") (setq common-lisp-hyperspec-symbol-table "C:/PROGRA~1/CORMAN~1/CORMAN~1.0/HyperSpec/Data/Map_Sym.Txt") ;; If you have a local copy of Common Lisp the language, set it's path here (setq cltl2-root-url "C:/PROGRA~1/CORMAN~1/CORMAN~1.0/cltl/") (add-hook 'ilisp-load-hook '(lambda () ;; Change default key prefix to C-c (setq ilisp-*prefix* "\C-c") ;; this cludge stops it from popping up windows ;; every time I press space in cormanlisp mode (setf ilisp-*arglist-message-lisp-space-p* nil) ;; Set a keybinding for the COMMON-LISP-HYPERSPEC command (defkey-ilisp "\C-ch" 'common-lisp-hyperspec) ;; Stop ilisp from using popup windows for lisp return values (setf lisp-no-popper t) ;; Set the inferior Lisp directory to the directory of ;; the buffer that spawned it on the first prompt. (message "Running ilisp-load-hook") )) ;;; end of file -- ilisp.emacs -- ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get A Free Psychic Reading! Your Online Answer To Life's Important Questions. http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/