From e047f0ab8c506207665c71666b6dcb75fc5d683d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 18 Dec 2016 00:27:31 -0500 Subject: [PATCH] Add octave-mode-hooks for files with ".m" extensions. --- mode-hooks.el | 1 + mode-hooks/octave-mode-hooks.el | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 mode-hooks/octave-mode-hooks.el diff --git a/mode-hooks.el b/mode-hooks.el index a43aeb1..2483dc1 100644 --- a/mode-hooks.el +++ b/mode-hooks.el @@ -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 index 0000000..84e89d9 --- /dev/null +++ b/mode-hooks/octave-mode-hooks.el @@ -0,0 +1,5 @@ +(defun octm-hook() + (setq 'octave-continuation-offset 2) + ) + +(add-hook 'octave-mode-hook (function octm-hook)) -- 2.44.2