]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
Add octave-mode-hooks for files with ".m" extensions.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 18 Dec 2016 05:27:31 +0000 (00:27 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 18 Dec 2016 05:29:05 +0000 (00:29 -0500)
mode-hooks.el
mode-hooks/octave-mode-hooks.el [new file with mode: 0644]

index a43aeb11f89549d688f3e362a1bf92ab83453175..2483dc180bb2899cb6ae11da7cb482d44dd85b55 100644 (file)
@@ -6,5 +6,6 @@
 (load-library "js-mode-hooks")
 (load-library "haskell-mode-hooks")
 (load-library "nxml-mode-hooks")
+(load-library "octave-mode-hooks")
 (load-library "ruby-mode-hooks")
 (load-library "visual-basic-mode-hooks")
diff --git a/mode-hooks/octave-mode-hooks.el b/mode-hooks/octave-mode-hooks.el
new file mode 100644 (file)
index 0000000..84e89d9
--- /dev/null
@@ -0,0 +1,5 @@
+(defun octm-hook()
+  (setq 'octave-continuation-offset 2)
+  )
+
+(add-hook 'octave-mode-hook (function octm-hook))