Skip to content

Instantly share code, notes, and snippets.

@ShigekiKarita
Created August 13, 2015 16:15
Show Gist options
  • Save ShigekiKarita/33d78d12482048f46c49 to your computer and use it in GitHub Desktop.
Save ShigekiKarita/33d78d12482048f46c49 to your computer and use it in GitHub Desktop.
(setenv "PATSHOME" (concat (getenv "HOME") "/tool/ats/ATS2-Postiats-0.2.1"))
;; https://raw.githubusercontent.com/mrd/ats2-mode/master/ats2-mode.el
(require 'ats-mode)
(setq auto-mode-alist
(append '(("\\.dats$" . ats-mode))
auto-mode-alist))
(add-hook 'ats-mode-hook
'(lambda ()
(require 'smart-compile)
(setq smart-compile-alist
(append smart-compile-alist
'(("\\.dats$" .
"patscc %f -o %n -DATS_MEMALLOC_LIBC && ./%n"))))
(with-eval-after-load 'flycheck
(flycheck-ats2-setup))
(require 'flycheck)
(flycheck-mode)))
;; https://raw.githubusercontent.com/drvink/flycheck-ats2/master/flycheck-ats2.el
(require 'flycheck-ats2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment