From 2c4e06a034e6a97a23de1fa2d128e3aeb8718166 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 16 Jan 2018 21:55:20 +0100 Subject: Add file associations --- emacs/.emacs.d/init.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 8c11b58..9a47ece 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -57,6 +57,7 @@ (use-package smart-tabs-mode :commands (c-mode c++-mode)) (use-package spaceline) (use-package swiper :commands swiper) +(use-package ttl-mode :commands ttl-mode) (use-package tramp) (require 'spaceline-config) @@ -415,12 +416,14 @@ ;; Associations (add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode)) -(add-to-list 'auto-mode-alist '("\\.n3" . n3-mode)) -(add-to-list 'auto-mode-alist '("\\.ttl" . n3-mode)) -(add-to-list 'auto-mode-alist '("\\.owl" . n3-mode)) +(add-to-list 'auto-mode-alist '("\\.n3" . ttl-mode)) +(add-to-list 'auto-mode-alist '("\\.ttl" . ttl-mode)) +(add-to-list 'auto-mode-alist '("\\.owl" . ttl-mode)) (add-to-list 'auto-mode-alist '("\\.ll" . llvm-mode)) (add-to-list 'auto-mode-alist '("\\.md" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.pdf" . pdf-view-mode)) +(add-to-list 'auto-mode-alist '("\\.gyp" . python-mode)) +(add-to-list 'auto-mode-alist '("\\.gypi" . python-mode)) ;;; Launch -- cgit v1.2.1