aboutsummaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-07-08 23:28:28 +0200
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-07-08 23:28:28 +0200
commita136e58c5d9a14ea09a13818201848ef98e9c5f9 (patch)
tree5e075e6ee6a3395c13b1f871aad79858a50bcbf3 /.dir-locals.el
parent1e57f1760b10f5b6a1c29176cfc55eafa630146f (diff)
Files with .mk suffix as Makefiles in Emacs
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.
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el4
1 files changed, 4 insertions, 0 deletions
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