Files
.emacs.d/languages/yaml.el
Jim Myhrberg c38d910344 Disable global linum-mode, and only activate it in specific modes where I want it.
This gives me more space in the Speedbar frame as it doesn't show line numbers anymore.
2011-11-15 18:01:43 +00:00

10 lines
354 B
EmacsLisp

(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(add-to-list 'auto-mode-alist '("\\.yaml$" . yaml-mode))
(add-to-list 'auto-mode-alist '("\\.yml\\.example$" . yaml-mode))
(add-hook 'yaml-mode-hook
'(lambda ()
(fci-mode)
(linum-mode t)
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent)))