Skip to content

Commit b9ad000

Browse files
committed
Make customs autoloaded
1 parent 0e6b044 commit b9ad000

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

swift-mode-font-lock.el

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,99 +44,117 @@
4444
"Font faces."
4545
:group 'swift)
4646

47+
;;;###autoload
4748
(defcustom swift-mode:highlight-symbols-in-standard-library
4849
t
4950
"Highlight symbols in the standard library."
5051
:type 'boolean
5152
:group 'swift-mode:faces
5253
:safe 'booleanp)
5354

55+
;;;###autoload
5456
(defcustom swift-mode:highlight-symbols-in-foundation-framework
5557
t
5658
"Highlight symbols in the Foundation framework."
5759
:type 'boolean
5860
:group 'swift-mode:faces
5961
:safe 'booleanp)
6062

63+
;;;###autoload
6164
(defface swift-mode:constant-keyword-face
6265
'((t . (:inherit font-lock-constant-face)))
6366
"Face for highlighting constant keywords
6467
6568
That is, true, false, and nil."
6669
:group 'swift-mode:faces)
6770

71+
;;;###autoload
6872
(defface swift-mode:preprocessor-keyword-face
6973
'((t . (:inherit font-lock-preprocessor-face)))
7074
"Face for highlighting preprocessor keywords.
7175
7276
Exmpale: #if, #endif, and #selector."
7377
:group 'swift-mode:faces)
7478

79+
;;;###autoload
7580
(defface swift-mode:keyword-face
7681
'((t . (:inherit font-lock-keyword-face)))
7782
"Face for highlighting keywords."
7883
:group 'swift-mode:faces)
7984

85+
;;;###autoload
8086
(defface swift-mode:builtin-method-trailing-closure-face
8187
'((t . (:inherit font-lock-builtin-face)))
8288
"Face for highlighting builtin methods with trailing closure."
8389
:group 'swift-mode:faces)
8490

91+
;;;###autoload
8592
(defface swift-mode:builtin-method-face
8693
'((t . (:inherit font-lock-builtin-face)))
8794
"Face for highlighting builtin methods."
8895
:group 'swift-mode:faces)
8996

97+
;;;###autoload
9098
(defface swift-mode:builtin-function-trailing-closure-face
9199
'((t . (:inherit font-lock-builtin-face)))
92100
"Face for highlighting builtin functions with trailing closure."
93101
:group 'swift-mode:faces)
94102

103+
;;;###autoload
95104
(defface swift-mode:builtin-function-face
96105
'((t . (:inherit font-lock-builtin-face)))
97106
"Face for highlighting builtin functions."
98107
:group 'swift-mode:faces)
99108

109+
;;;###autoload
100110
(defface swift-mode:builtin-property-face
101111
'((t . (:inherit font-lock-builtin-face)))
102112
"Face for highlighting builtin properties."
103113
:group 'swift-mode:faces)
104114

115+
;;;###autoload
105116
(defface swift-mode:builtin-constant-face
106117
'((t . (:inherit font-lock-builtin-face)))
107118
"Face for highlighting builtin constants."
108119
:group 'swift-mode:faces)
109120

121+
;;;###autoload
110122
(defface swift-mode:builtin-enum-case-face
111123
'((t . (:inherit font-lock-builtin-face)))
112124
"Face for highlighting builtin enum cases."
113125
:group 'swift-mode:faces)
114126

127+
;;;###autoload
115128
(defface swift-mode:build-config-keyword-face
116129
'((t . (:inherit font-lock-builtin-face)))
117130
"Face for highlighting build configuration keywords."
118131
:group 'swift-mode:faces)
119132

133+
;;;###autoload
120134
(defface swift-mode:builtin-type-face
121135
'((t . (:inherit font-lock-builtin-face)))
122136
"Face for highlighting builtin types."
123137
:group 'swift-mode:faces)
124138

139+
;;;###autoload
125140
(defface swift-mode:builtin-precedence-group-face
126141
'((t . (:inherit font-lock-builtin-face)))
127142
"Face for highlighting builtin precedence groups."
128143
:group 'swift-mode:faces)
129144

145+
;;;###autoload
130146
(defface swift-mode:function-call-face
131147
'((t . (:inherit font-lock-function-name-face)))
132148
"Face for highlighting function calls."
133149
:group 'swift-mode:faces)
134150

151+
;;;###autoload
135152
(defface swift-mode:function-name-face
136153
'((t . (:inherit font-lock-function-name-face)))
137154
"Face for highlighting function names."
138155
:group 'swift-mode:faces)
139156

157+
;;;###autoload
140158
(defface swift-mode:property-access-face
141159
'((t . (:inherit font-lock-variable-name-face)))
142160
"Face for highlighting property accesses."

swift-mode-repl.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@
4545
"REPL."
4646
:group 'swift)
4747

48+
;;;###autoload
4849
(defcustom swift-mode:repl-executable
4950
"xcrun swift"
5051
"Path to the Swift CLI. The string is splitted by spaces, then unquoted."
5152
:type '(choice string (list string))
5253
:group 'swift-mode:repl
5354
:safe 'stringp)
5455

56+
;;;###autoload
5557
(defcustom swift-mode:swift-package-executable
5658
"xcrun swift package"
5759
"Path to the Swift command for package manipulation.
@@ -60,6 +62,7 @@ The string is splitted by spaces, then unquoted."
6062
:group 'swift-mode:repl
6163
:safe 'stringp)
6264

65+
;;;###autoload
6366
(defcustom swift-mode:swift-build-executable
6467
"xcrun swift build"
6568
"Path to the Swift command for building.
@@ -68,6 +71,7 @@ The string is splitted by spaces, then unquoted."
6871
:group 'swift-mode:repl
6972
:safe 'stringp)
7073

74+
;;;###autoload
7175
(defcustom swift-mode:debugger-executable
7276
"xcrun lldb"
7377
"Path to the debugger command.
@@ -76,6 +80,7 @@ The string is splitted by spaces, then unquoted."
7680
:group 'swift-mode:repl
7781
:safe 'stringp)
7882

83+
;;;###autoload
7984
(defcustom swift-mode:ios-deploy-executable
8085
"ios-deploy"
8186
"Path to ios-deploy command.
@@ -84,6 +89,7 @@ The string is splitted by spaces, then unquoted."
8489
:group 'swift-mode:repl
8590
:safe 'stringp)
8691

92+
;;;###autoload
8793
(defcustom swift-mode:simulator-controller-executable
8894
"xcrun simctl"
8995
"Path to the simulator controller command.
@@ -92,6 +98,7 @@ The string is splitted by spaces, then unquoted."
9298
:group 'swift-mode:repl
9399
:safe 'stringp)
94100

101+
;;;###autoload
95102
(defcustom swift-mode:xcodebuild-executable
96103
"xcrun xcodebuild"
97104
"Path to the Xcode builder.
@@ -100,6 +107,7 @@ The string is splitted by spaces, then unquoted."
100107
:group 'swift-mode:repl
101108
:safe 'stringp)
102109

110+
;;;###autoload
103111
(defcustom swift-mode:xcode-select-executable
104112
"xcode-select"
105113
"Path to the Xcode selector.
@@ -108,6 +116,7 @@ The string is splitted by spaces, then unquoted."
108116
:group 'swift-mode:repl
109117
:safe 'stringp)
110118

119+
;;;###autoload
111120
(defcustom swift-mode:debugger-prompt-regexp "^(lldb) +\\|^[0-9]+> +"
112121
"Regexp to search a debugger prompt."
113122
:type 'string

0 commit comments

Comments
 (0)