Enable subword-mode for yaml-mode

This commit is contained in:
Bozhidar Batsov 2014-09-10 17:56:00 +03:00
parent ce006a3beb
commit fca390003c

View file

@ -36,6 +36,7 @@
;; yaml-mode doesn't derive from prog-mode, but we can at least enable ;; yaml-mode doesn't derive from prog-mode, but we can at least enable
;; whitespace-mode and apply cleanup. ;; whitespace-mode and apply cleanup.
(add-hook 'yaml-mode-hook 'whitespace-mode) (add-hook 'yaml-mode-hook 'whitespace-mode)
(add-hook 'yaml-mode-hook 'subword-mode)
(add-hook 'yaml-mode-hook (add-hook 'yaml-mode-hook
(lambda () (add-hook 'before-save-hook 'prelude-cleanup-maybe nil t))) (lambda () (add-hook 'before-save-hook 'prelude-cleanup-maybe nil t)))