Skip to content

Commit

Permalink
Add Emacs dir local variables to threat mypatch as patches and sh-indent
Browse files Browse the repository at this point in the history
Indentation in shell scripts is 2 in this repo, apply that.
Open mypatches in diff mode just as regular patches.
  • Loading branch information
Thaodan committed May 21, 2024
1 parent f99f78d commit 1416242
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")


(
;; Open mypatch files in diff-mode
(auto-mode-alist . (("\\.mypatch\\'" . diff-mode)))
(shell-script-mode . ((sh-indentation . 2))))

0 comments on commit 1416242

Please sign in to comment.