Skip to content

Commit

Permalink
Octave settings for Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias committed Dec 20, 2015
1 parent 74453f6 commit fccbb92
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions emacs/.emacs
Expand Up @@ -178,6 +178,10 @@
;; .emacs file
(add-to-list 'auto-mode-alist '("\\\.emacs\\'" . emacs-lisp-mode))

;; Octave files
(add-to-list 'auto-mode-alist '("\\\.m\\'" . octave-mode))


;;;; Slime for Common Lisp REPL:
(require 'slime-autoloads)

Expand Down Expand Up @@ -255,3 +259,11 @@

(global-set-key "\C-x\C-n" `other-window)
(global-set-key "\C-x\C-p" `other-window-backward)

;; Octave mode settings
(add-hook 'octave-mode-hook
(lambda ()
(abbrev-mode 1)
(auto-fill-mode 1)
(if (eq window-system 'x)
(font-lock-mode 1))))

0 comments on commit fccbb92

Please sign in to comment.