Skip to content

Commit 6d4fab5

Browse files
committed
Move customizations for REPL to their own group
1 parent c56f43c commit 6d4fab5

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

swift-mode-repl.el

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,65 +38,70 @@
3838
(require 'subr-x)
3939
(require 'wid-edit)
4040

41+
;;;###autoload
42+
(defgroup swift-mode:repl nil
43+
"REPL."
44+
:group 'swift)
45+
4146
(defcustom swift-mode:repl-executable
4247
"xcrun swift"
4348
"Path to the Swift CLI. The string is splitted by spaces, then unquoted."
4449
:type '(choice string (list string))
45-
:group 'swift
50+
:group 'swift-mode:repl
4651
:safe 'stringp)
4752

4853
(defcustom swift-mode:swift-package-executable
4954
"xcrun swift package"
5055
"Path to the Swift command for package manipulation.
5156
The string is splitted by spaces, then unquoted."
5257
:type '(choice string (list string))
53-
:group 'swift
58+
:group 'swift-mode:repl
5459
:safe 'stringp)
5560

5661
(defcustom swift-mode:swift-build-executable
5762
"xcrun swift build"
5863
"Path to the Swift command for building.
5964
The string is splitted by spaces, then unquoted."
6065
:type '(choice string (list string))
61-
:group 'swift
66+
:group 'swift-mode:repl
6267
:safe 'stringp)
6368

6469
(defcustom swift-mode:debugger-executable
6570
"xcrun lldb"
6671
"Path to the debugger command.
6772
The string is splitted by spaces, then unquoted."
6873
:type '(choice string (list string))
69-
:group 'swift
74+
:group 'swift-mode:repl
7075
:safe 'stringp)
7176

7277
(defcustom swift-mode:simulator-controller-executable
7378
"xcrun simctl"
7479
"Path to the simulator controller command.
7580
The string is splitted by spaces, then unquoted."
7681
:type '(choice string (list string))
77-
:group 'swift
82+
:group 'swift-mode:repl
7883
:safe 'stringp)
7984

8085
(defcustom swift-mode:xcodebuild-executable
8186
"xcrun xcodebuild"
8287
"Path to the Xcode builder.
8388
The string is splitted by spaces, then unquoted."
8489
:type '(choice string (list string))
85-
:group 'swift
90+
:group 'swift-mode:repl
8691
:safe 'stringp)
8792

8893
(defcustom swift-mode:xcode-select-executable
8994
"xcode-select"
9095
"Path to the Xcode selector.
9196
The string is splitted by spaces, then unquoted."
9297
:type '(choice string (list string))
93-
:group 'swift
98+
:group 'swift-mode:repl
9499
:safe 'stringp)
95100

96101
(defcustom swift-mode:debugger-prompt-regexp "^(lldb) +\\|^[0-9]+> +"
97102
"Regexp to search a debugger prompt."
98103
:type 'string
99-
:group 'swift
104+
:group 'swift-mode:repl
100105
:safe 'stringp)
101106

102107
(defvar swift-mode:repl-buffer nil

0 commit comments

Comments
 (0)