all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lorenzo Isella" <lorenzo.isella@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Customization maxima mode
Date: Thu, 19 Jun 2008 11:53:23 +0200	[thread overview]
Message-ID: <a2b3004b0806190253o6825932x68a3800bc6ca1984@mail.gmail.com> (raw)

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




             reply	other threads:[~2008-06-19  9:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19  9:53 Lorenzo Isella [this message]
2008-06-19 21:11 ` Customization maxima mode Nikolaj Schumacher
2008-06-19 22:15   ` Lorenzo Isella
2008-06-19 22:21 ` David Hansen
     [not found] <mailman.13565.1213869210.18990.help-gnu-emacs@gnu.org>
2008-06-19 19:59 ` Rupert Swarbrick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a2b3004b0806190253o6825932x68a3800bc6ca1984@mail.gmail.com \
    --to=lorenzo.isella@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.