Skip to content

Commit c4bee1a

Browse files
committed
fixed emacs a little better
1 parent 941f4e9 commit c4bee1a

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

core/lib.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ let env : (string * (located_primitive * Types.datatype * pure)) list = [
251251

252252
"mod", int_op (mod) IMPURE;
253253

254-
(* for backwards compatability *)
254+
(* For backwards compatability *)
255255
"+.", float_op ( +. ) PURE;
256256
"-.", float_op ( -. ) PURE;
257257
"*.", float_op ( *.) PURE;

links-mode.el

+4-19
Original file line numberDiff line numberDiff line change
@@ -120,32 +120,17 @@
120120
"with"
121121
))
122122

123-
;;; Added by yung-turabian 2025
124123
(defconst links-keywords
125124
; Not the best test
126-
(if (string-equal
125+
(if (string-match
126+
"Links version"
127127
(shell-command-to-string (concat links-executable " --version"))
128-
"Links version 0.9.9 (Burghmuirhead)\n"
129-
)
128+
)
130129
(split-string
131130
(shell-command-to-string (concat links-executable " --print-keywords"))
132131
"\n" " ")
133132
links-backup-keywords)
134-
)
135-
136-
137-
;;; Added by yung-turabian 2025
138-
(defconst links-keywords
139-
; Not the best test
140-
(if (string-equal
141-
(shell-command-to-string (concat links-executable " --version"))
142-
"Links version 0.9.9 (Burghmuirhead)\n"
143-
)
144-
(split-string
145-
(shell-command-to-string (concat links-executable " --print-keywords"))
146-
"\n" " ")
147-
links-backup-keywords)
148-
)
133+
)
149134

150135

151136
(defconst links-font-lock-keywords

0 commit comments

Comments
 (0)