From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lorenzo Isella" Newsgroups: gmane.emacs.help Subject: Customization maxima mode Date: Thu, 19 Jun 2008 11:53:23 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213869324 11919 80.91.229.12 (19 Jun 2008 09:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2008 09:55:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 19 11:56:09 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K9Gs6-0001SA-4x for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2008 11:56:02 +0200 Original-Received: from localhost ([127.0.0.1]:32914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9GrG-0001Yg-PV for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2008 05:55:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9Gpc-0001Ne-7e for help-gnu-emacs@gnu.org; Thu, 19 Jun 2008 05:53:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9Gpa-0001My-Dv for help-gnu-emacs@gnu.org; Thu, 19 Jun 2008 05:53:27 -0400 Original-Received: from [199.232.76.173] (port=54409 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9GpZ-0001Mt-Vd for help-gnu-emacs@gnu.org; Thu, 19 Jun 2008 05:53:26 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.170]:58950) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9GpY-0000GQ-Te for help-gnu-emacs@gnu.org; Thu, 19 Jun 2008 05:53:25 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so961897ugc.48 for ; Thu, 19 Jun 2008 02:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=W/J/WjOWbvPXrgtkDN4nifkDFSzx3rytVDFqwcrivi0=; b=obhKxY6kSw7rRE+/RzA9Drp3tdBARK9Jm0YWd6Tp3Vb1wxIch32vBgWj3rdS4TYXxu uAcqNWDTmS4aWX0ySwCZ/SRuxwLbElE8m58cxoSILkZs+HoaZFrlt+/jqsNV6FffGmQC ZPM1S6kc/aqEkbonF54fq6jK6I9AdCgwR7Tfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=Zv2WWyY9ItcZOxJs3v4QELmD4jhDzyyYzWilL8jl9LakM1aB0HbP7jTOl0j64mjnMj WHFO2klajbYG19/3/AePtRFRbXscHiaHPj+qCxN5WAKMYVtCIVzxizPW1NZiSqfTveWv MhJrRtf2SVFVzB+JYadlMDO6Ib2A8n/PNBvLc= Original-Received: by 10.210.75.6 with SMTP id x6mr1666220eba.31.1213869203127; Thu, 19 Jun 2008 02:53:23 -0700 (PDT) Original-Received: by 10.210.23.18 with HTTP; Thu, 19 Jun 2008 02:53:23 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: 4d90676fc9b2dc2a X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54970 Archived-At: Dear All, I use emacs, among other things, also to edit some simple batch files for the computer-algebra system maxima (http://maxima.sourceforge.net/). Thanks to this mailing list, I managed to add some simple customization to other modules (python, aucted, R etc...), but for some reason this fails for maxima-mode. An example from my .emacs file: (defun insert-round () "custom redefined insert-round" (interactive) (insert "()") ; typing "(" automatically insert "()" (backward-char 1)) ;and go between them: no more matching problems! (local-set-key "(" 'insert-round) (add-hook 'Maxima-mode-hook (lambda () (local-set-key "(" 'insert-round))) (setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist)) ;(setq load-path (cons "/usr/share/maxima/5.9.0/emacs" load-path )) (autoload 'maxima "maxima" "Running Maxima interactively" t) (autoload 'maxima-mode "maxima" "Maxima editing mode" t) So, how comes that when editing e.g. file calculations.max, typing ( does not autocomplete to () and cursor in between the brackets? I suppose I must be making a trivial mistake; a similar procedure gives no trouble with a .py file for instance. I should add that the maxima mode seems to be recognized (I have syntax highlighting and so on). Many thanks for your help Lorenzo