[chuck-users] emacs.el?

Furlan Primus fprimus at gmail.com
Tue Nov 1 02:03:34 EST 2005


On 10/31/05, Atte André Jensen <atte.jensen at gmail.com> wrote:
> Furlan Primus wrote:
>
> > http://flprim.us/emacs/chuck.el
>
> I tried that, but can't make it work. How is it "installed" in .emacs?

I renamed chuck.el to chuck-mode.el, placed it in the ~/emacs/packages
subdirectory.
The following lines are in my .emacs:

;;; ===================================
(setq load-path (append load-path (list "~/emacs/packages")))

(setq auto-mode-alist
      (cons '("\\.ck" . chuck-mode)
	    auto-mode-alist))
(autoload 'chuck-mode "chuck-mode" "ChucK editing mode" t )

;;; ===================================


In chuck-mode.el I changed the following as requested as I am running
under Fedora Core 3 and my executable is located in /usr/bin:

;;; CHANGE THIS to something that fits your system!!!
(defvar chuck-exec "/usr/bin/chuck")

I have NOT tested it much yet except to insure that emacs invokes the
.ck files in chuck-mode.  I did not write the chuck-mode and am merely
offering it because I found people asking for it.  Insofar as it seems
to need to be called chuck-mode.el rather than chuck.el I will rename
the file that is downloaded to save others from having to change the
name.

HTH

ciao,
furlan

>
> --
> peace, love & harmony
> Atte
>
> http://www.atte.dk
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>


--
Blog: http://flprimus.blogspot.com/
Home: http://flprim.us/index.html

Working with Linux is like wrestling with a worthy opponent. Working
with Windows is like picking on an annoyed child with a loaded handgun.


More information about the chuck-users mailing list