From 598ce014f1948ef4fb0f88e1e9b1ed13c44cde2c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 14 Oct 2016 15:35:01 +0200 Subject: [PATCH] Move vala-mode and yaml-mode configuration to use-package --- init.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index aa352ab..87fa440 100644 --- a/init.el +++ b/init.el @@ -405,8 +405,16 @@ :init (setq-default sml/theme 'powerline)) +(use-package vala-mode + :init + (add-to-list 'auto-mode-alist '("\\.vala\\'" . vala-mode))) + (use-package xlicense) +(use-package yaml-mode + :init + (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))) + ;; Load my own functions (load "gnu-c-header.el") (load "toggle-window-split.el") @@ -520,9 +528,6 @@ ;; Stuff to do after initialization is done ;; TODO: Unordered stuff -(add-to-list 'auto-mode-alist '("\\.vala\\'" . vala-mode)) -(add-to-list 'auto-mode-alist '("\\.erl\\'" . erlang-mode)) -(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) ; Temporary show line numbers while in the goto minibuffer. Copied ; from http://whattheemacsd.com/key-bindings.el-01.html