From a136e58c5d9a14ea09a13818201848ef98e9c5f9 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sun, 8 Jul 2018 23:28:28 +0200 Subject: Files with .mk suffix as Makefiles in Emacs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since version 26.1, apparently Emacs doesn't tream `.mk' files in Makefile-mode. So thanks to Mosè Giordano, a line was added in the `.dir-locals.el' file so we can be sure they are always treated as Makefiles and make things more convenient for Emacs users. --- .dir-locals.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.dir-locals.el') diff --git a/.dir-locals.el b/.dir-locals.el index af98cc8..5606ae8 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -9,6 +9,10 @@ ;; ;; For more information see (info "(emacs) Directory Variables") +;; Open `.mk' files in Makefile mode +(add-to-list 'auto-mode-alist '("\\.mk$" . makefile-mode)) + +;; Basic settings. ((nil (indent-tabs-mode . nil) ;; No tabs as indentation (fill-column . 75)) ;; 75-character wide lines -- cgit v1.2.1