Skip to content

Instantly share code, notes, and snippets.

@ptrv
Created December 11, 2009 00:23
Show Gist options
  • Save ptrv/253857 to your computer and use it in GitHub Desktop.
Save ptrv/253857 to your computer and use it in GitHub Desktop.
emacs octave-mode-kooks
(add-hook 'octave-mode-hook
(lambda ()
(abbrev-mode 1)
(auto-fill-mode 1)
(if (eq window-system 'x)
(font-lock-mode 1))))
(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)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment