diff .elisp/settings/40.modes.el @ 479:601884c45f8a

emacs: switch to from-hg hg-test-mode config
author Augie Fackler <raf@durin42.com>
date Thu, 21 Feb 2019 20:35:10 -0500
parents 5843408c9a38
children
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -110,3 +110,9 @@ point."
 
 ;; Tempfiles from mutt should be edited in mail-mode.
 (add-to-list 'auto-mode-alist '("/mutt" . mail-mode))
+
+(if (file-exists-p "~/Programming/hg/crew/contrib/hg-test-mode.el")
+    (progn
+      (load "~/Programming/hg/crew/contrib/hg-test-mode.el")
+      (add-to-list 'auto-mode-alist '("\\.t$'" . hg-test-mode))
+      (add-hook 'hg-test-mode-hook 'af-no-clean-whitespace)))