(defcustom pico8-lua-indent-level 1
"Default indentation for PICO-8 Lua mode.
-This overrides `lua-indent-level' in `pico8-lua-mode'.
-`lua-mode''s default indentation is 3, which is both
-idiosyncratic and quite large when viewed in the PICO-8 editor,
-where the convention is 1."
+This overrides ‘lua-indent-level’ in ‘pico8-lua-mode’. ‘lua-mode’
+uses a default indentation is 3, which is both idiosyncratic and
+quite large when viewed in the PICO-8 editor, where the
+convention is 1."
:group 'pico8
:tag "PICO-8 Lua Indent Level")
"Look up the PICO-8 executable."
(or (car (delete nil (mapcar 'executable-find pico8-executable-paths)))
(error "The PICO-8 executable could not be found.
-Make sure it is installed, and present in `pico8-executable-paths'")))
+Make sure it is installed, and present in ‘pico8-executable-paths’")))
(defun pico8--create-output-buffer ()
"Create and return a buffer for PICO-8 output."
(flycheck-define-checker pico8-lua
"A PICO-8 Lua syntax checker using the Lua compiler.
-See URL `http://www.lua.org/'."
+See URL ‘http://www.lua.org/'."
:command ("luac" "-p" source)
:standard-input nil
:error-patterns
(flycheck-define-checker pico8-luacheck
"A PICO-8 Lua syntax checker using luacheck.
-See URL `https://github.com/mpeterv/luacheck'."
+See URL ‘https://github.com/mpeterv/luacheck’."
:command ("luacheck"
"--formatter" "plain"
"--codes" ; Show warning codes
(error line-start
(optional (file-name))
":" line ":" column ":"
- ;; `luacheck' before 0.11.0 did not output codes for errors, hence
+ ;; ‘luacheck’ before 0.11.0 did not output codes for errors, hence
;; the ID is optional here
(optional " (" (id "E" (one-or-more digit)) ") ")
(message) line-end))