summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el2
-rw-r--r--lisp/init-stan.el9
2 files changed, 10 insertions, 1 deletions
diff --git a/init.el b/init.el
index ce01e90..3d2ea00 100644
--- a/init.el
+++ b/init.el
@@ -29,7 +29,7 @@
(require 'init-haskell)
(require 'init-python)
(require 'init-ess)
-(require-package 'stan-mode)
+(require 'init-stan)
(require-package 'lua-mode)
(require 'init-tex)
diff --git a/lisp/init-stan.el b/lisp/init-stan.el
new file mode 100644
index 0000000..16f427c
--- /dev/null
+++ b/lisp/init-stan.el
@@ -0,0 +1,9 @@
+(require-package 'stan-mode)
+(require 'stan-mode)
+
+;; Remove the anonymous function that activates flymake. This is not a
+;; good solution because it will likely break when this hook is
+;; modified, but I don't see a stan-mode variable to disable flymake.
+(remove-hook 'stan-mode-hook (car (last stan-mode-hook)))
+
+(provide 'init-stan)