Skip to content

Instantly share code, notes, and snippets.

@johnfredcee
Created July 28, 2012 14:11
Show Gist options
  • Select an option

  • Save johnfredcee/3193552 to your computer and use it in GitHub Desktop.

Select an option

Save johnfredcee/3193552 to your computer and use it in GitHub Desktop.
Flymake for Unrealscript
(defcustom udk-location "C:\\UDK\\UDK-2012-05\\"
"Directory where udk executables are found"
:type 'directory
:group 'udk)
(defun flymake-unrealscript-init ()
(setq flymake-base-dir udk-location)
(list (concat udk-location "\\Binaries\\Win32\\UDK.com") '("make" "-debug")))
(defun flymake-unrealscript-cleanup ()
;; nothing to do
)
(defun flymake-unrealscript-getfn (filename)
filename)
(setq flymake-allowed-file-name-masks
(cons '(".+\\.uc$"
flymake-unrealscript-init
flymake-unrealscript-cleanup
flymake-unrealscript-getfn)
flymake-allowed-file-name-masks))
(setq flymake-err-line-patterns
(cons '("^\\(.+\\)(\\([0-9]+\\)) : Error,\\(.+\\)"
1 2 nil 3)
flymake-err-line-patterns))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment