From 9434783dc8e452569d56f322cc4629c1b17eb301 Mon Sep 17 00:00:00 2001 From: Marcus Kammer <2262664-marcus-kammer@users.noreply.gitlab.com> Date: Fri, 28 Jun 2019 16:07:38 +0200 Subject: [PATCH] Add yaml mode --- init.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index c93be121..b5803e79 100755 --- a/init.el +++ b/init.el @@ -50,7 +50,7 @@ '(global-hl-line-mode t) '(indent-tabs-mode nil) '(inhibit-startup-screen t) - '(line-spacing 3) + '(line-spacing nil) '(linum-relative-backend (quote display-line-numbers-mode)) '(major-mode (quote text-mode)) '(make-backup-files nil) @@ -65,11 +65,10 @@ ("Ubuntu" "https://blog.ubuntu.com/feed") ("Python PEP" "https://www.python.org/dev/peps/peps.rss/") ("openSuse News" "https://news.opensuse.org/feed")))) - '(org-agenda-files (quote ("~/Documents/Journal"))) '(org-default-notes-file "~/Documents/Journal/notes.org") '(package-enable-at-startup t) - '(package-selected-packages (quote (magit))) + '(package-selected-packages (quote (yaml-mode magit))) '(require-final-newline t) '(timeclock-file "~/Documents/Diary/timelog") '(timeclock-mode-line-display t) @@ -82,7 +81,7 @@ ;; If there is more than one, they won't work right. ) (when (display-graphic-p) - (add-to-list 'default-frame-alist '(font . "Hack-10"))) + (add-to-list 'default-frame-alist '(font . "Hack-11"))) ;; set modes (line-number-mode -1) (column-number-mode -1) @@ -124,13 +123,14 @@ (add-to-list 'default-frame-alist '(width . 80)))) (when (eq system-type 'windows-nt) - (setq-default line-spacing 5) + ;; (setq-default line-spacing 5) (add-to-list 'load-path (expand-file-name "~/.emacs.d/__evo")) (require 'evo-feeds) (when (display-graphic-p) (add-to-list 'default-frame-alist '(height . 60)) (add-to-list 'default-frame-alist '(width . 80)) - (add-to-list 'default-frame-alist '(alpha . (96))))) + ;; (add-to-list 'default-frame-alist '(alpha . (96))) + )) (when (eq system-type 'gnu/linux) (setq-default line-spacing 3) @@ -165,3 +165,5 @@ (yank) ) ;;(global-set-key (kbd "C-d") 'duplicate-line) +(require 'yaml-mode) + (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))