forked from purescript-emacs/purescript-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
purescript-yas.el
55 lines (39 loc) · 1.77 KB
/
purescript-yas.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
;;; purescript-yas.el --- Customization support for Luke Hoersten's yasnippets
;; Copyright (C) 2013 John Wiegley, Luke Hoersten
;; Author: John Wiegley <[email protected]>
;; Luke Hoersten <[email protected]>
;; Keywords: faces files PureScript
;; This file is not part of GNU Emacs.
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; Provides customization variables for Luke Hoersten's yasnippet collection
;; to depend on.
;;; Code:
(defgroup purescript-yas nil
"Customizations for Luke Hoersten's yasnippet collection for purescript-mode."
:group 'purescript
:prefix "purescript-yas-")
(defcustom purescript-yas-ghc-language-pragmas
(split-string (shell-command-to-string "ghc --supported-extensions"))
"List of language pragmas supported by the installed version of GHC."
:group 'purescript-yas
:type '(repeat string))
(defcustom purescript-yas-completing-function 'completing-read
"Function to use for completing among alternatives."
:group 'purescript-yas
:type 'function)
;;;###autoload
(defun purescript-yas-complete (&rest args)
(apply purescript-yas-completing-function args))
;; Provide ourselves:
(provide 'purescript-yas)
;;; purescript-yas.el ends here