Browse Source

Enable subword-mode for yaml-mode

custom
Bozhidar Batsov 11 years ago
parent
commit
fca390003c
  1. 1
      modules/prelude-yaml.el

1
modules/prelude-yaml.el

@ -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)))

Loading…
Cancel
Save