Skip to content

Commit

Permalink
[spacemacs] ocaml: move tuareg-abbrev-hook hack to my-ocaml layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjbray committed Jan 30, 2018
1 parent abaa824 commit 47e7e73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .spacemacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,6 @@ before packages are loaded."
;; Show Git submodules section in Magit status buffer.
(with-eval-after-load 'magit
(magit-add-section-hook 'magit-status-sections-hook 'magit-insert-submodules))

;; Noop to stop tuareg-abbrev-hook error popping up when hitting escape
(defun tuareg-abbrev-hook ()
())
)

;; Do not write anything past this comment. This is where Emacs will
Expand Down
3 changes: 3 additions & 0 deletions .spacemacs.d/layers/my-ocaml/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Each entry is either:

(defun my-ocaml/post-init-tuareg ()
(progn
;; Noop to stop tuareg-abbrev-hook error popping up when hitting escape
(defun tuareg-abbrev-hook () ())

(add-hook 'tuareg-mode-hook
(lambda ()
(setq-local comment-style 'indent)))
Expand Down

0 comments on commit 47e7e73

Please sign in to comment.