From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <3EBF872E.9080106@altlinux.ru> Date: Mon, 12 May 2003 15:36:14 +0400 From: Alexandre Prokoudine User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.3) Gecko/20030331 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: devel@altlinux.ru Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Subject: [devel] csound extensions for vim and 'X?Emacs' Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: Господа, В связи с тем, что Csound релицензирован под LGPL и в скором времени появится в Сизифе, прошу сопроводителей vim и Emacs/XEmacs включить в сборки расширения vim/emacs/xemacs для Csound Для vim: http://www.eumus.edu.uy/docentes/jure/csound/vim/ или http://www.csounds.com/istvan/html/cspatches.html Для Emacs/XEmacs: http://www.zogotounga.net/comp/csoundx.html По поводу последней ссылки позволю себе процитировать следующее письмо: From: Torsten Anders To: linux-audio-user@music.columbia.edu Cc: Dave Phillips Reply-To: linux-audio-user@music.columbia.edu Subject: Re: [linux-audio-user] [OT] any Xemacs users here ? Date: 22 Apr 2003 12:32:51 +0100 Sender: linux-audio-user-admin@music.columbia.edu Organization: X-Mailer: Ximian Evolution 1.2.1 (1.2.1-1) On Mon, 2003-04-21 at 22:12, Jack O'Quin wrote: > Dave Phillips writes: > > I assume the Csound mode file is available from Bath, but after I have it how do I > > instruct emacs to use it ? > > Here's a pointer that looks helpful... > > http://www.zogotounga.net/comp/csoundx.html The emacs-mode you mention here is a extension of a more basic mode by John ffitch (ftp.cs.bath.ac.uk/pub/dream/utilities/Emacs-macros). You may want to start with that one, perhaps thats all you for now (because the extensions has a lot of dependencies ;-) However, the file on csound-x (the extended mode quoted above) says on installing: "Unpack the stef-elisp.zip archive in your site-lisp directory [...]" You probably already got stuck here ;) Don't panic! It just means, place the file somewhere where emacs can find it (comparable to $PATH for the shell). You can define/extend your path in your .emacs file, e.g. (setq load-path (cons "/home/me/emacs/" load-path)) You may then want, that your csound files are recognized automatically dependent to their extension. So you may add to .emacs (I hope I did not mix up parentheses): (setq auto-mode-alist (append '(("\\.orc$" . csound-orc-mode) ("\\.ORC$" . csound-orc-mode) ("\\.sco$" . csound-sco-mode) ("\\.SCO$" . csound-orc-mode) ("\\.csd$" . csound-orc-mode) ("\\.cec$" . csound-orc-mode)) auto-mode-alist)) The installation instruction of csound-x suggests to add (require 'stef-elisp) Unfortunately, this didn't work for me (had some problem with some sub-package, if I recall correctly, its month ago). However, I changed it to: (autoload 'csound-orc-mode "csound-orc" "Csound Orchestra major mode." t) (autoload 'csound-sco-mode "csound-sco" "Csound Score major mode." t) These two expressions have the effect that the appropriate mode is loaded whenever you open a csound file (a file with one of the extentions declared above) the first time in your emacs session. BTW, other emacs modi (e.g. the csound mode of John ffitch) can be installed in a similar way. Happy "emacsing", Torsten -- Torsten Anders Sonic Arts Research Centre Queens University Belfast Tel: +44 28 9027 4831 (office) +44 28 9066 7439 (private) -- Alexandre Prokoudine ALT Linux Documentation Team JabberID: avp@altlinux.org