help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

running mfiles in emacs


From: Rich E
Subject: running mfiles in emacs
Date: Sat, 15 Apr 2006 14:40:45 -0700

Hello,

First off, I have just switched from Matlab to Octave, so there are many things I am used to doing in Matlab that I would like to see if.how they are possible in Octave. 

Most importantly, I like to work in mfiles that I can save as scripts, then run whatever I would like by highlighting code and pressing F9.  Is anything like this possible with Emacs and Octave?  I have gotten Emacs to work in Octave-mode, but I cannot use the debug features. If I try running any lines or regions, I get the message "Spawning Child Process - Invalid Argument". If anyone can help me figure this out, much thanks. Here is my .emacs file:

(autoload 'octave-mode "octave-mod" nil t)
          (setq auto-mode-alist
                (cons '("\\.m$" . octave-mode) auto-mode-alist))
(add-hook 'octave-mode-hook
                    (lambda ()
                      (abbrev-mode 1)
                      (auto-fill-mode 1)
                      (if (eq window-system 'x)
                          (font-lock-mode 1))))

(setq octave-help-files '("octave" "octave-LG"))

(autoload 'run-octave "octave-inf" nil t)

(add-hook 'inferior-octave-mode-hook
               (lambda ()
                 (turn-on-font-lock)
                 (define-key inferior-octave-mode-map [up]
                   'comint-previous-input)
                 (define-key inferior-octave-mode-map [down]
                   'comint-next-input)))

(defvar inferior-octave-program "C:\Program Files\GNU Octave 2.1.73\bin"
                   "*Program invoked by 'inferior-octave'.")


Thanks
Richie


reply via email to

[Prev in Thread] Current Thread [Next in Thread]