Skip to content

Commit 2d182c5

Browse files
committed
Extract dev utils inside their own namespace
1 parent 8b7bb98 commit 2d182c5

File tree

2 files changed

+40
-30
lines changed

2 files changed

+40
-30
lines changed

psci-dev.el

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
;;; psci-dev.el --- Utilities for helping in dev psci
2+
3+
;;; Commentary:
4+
5+
;;; Code:
6+
7+
(require 'psci)
8+
9+
;; ELISP> (with-current-buffer "*psci*"
10+
;; (psci/--debug-setup!))
11+
;; ("comint-prompt-regexp" "^> "
12+
;; "paragraph-separate" "\\'"
13+
;; "paragraph-start" "^> "
14+
;; "comint-input-sender" comint-simple-send
15+
;; "comint-get-old-input" comint-get-old-input-default
16+
;; "comint-process-echoes" nil
17+
;; "comint-prompt-read-only" t
18+
;; "comint-eol-on-send" t
19+
;; "comint-input-filter-functions" nil
20+
;; "font-lock-defaults" (purescript-font-lock-keywords t)
21+
;; "comment-start" "-- "
22+
;; "comment-use-syntax" t)
23+
24+
(defun psci/--debug-setup! ()
25+
"A function to debug the current major mode's runtime setup."
26+
(list "comint-prompt-regexp" comint-prompt-regexp
27+
"paragraph-separate" paragraph-separate
28+
"paragraph-start" paragraph-start
29+
"comint-input-sender" comint-input-sender
30+
"comint-get-old-input" comint-get-old-input
31+
"comint-process-echoes" comint-process-echoes
32+
"comint-prompt-read-only" comint-prompt-read-only
33+
"comint-eol-on-send" comint-eol-on-send
34+
"comint-input-filter-functions" comint-input-filter-functions
35+
"font-lock-defaults" font-lock-defaults
36+
"comment-start" comment-start
37+
"comment-use-syntax" comment-use-syntax))
38+
39+
(provide 'psci-dev)
40+
;;; psci-dev.el ends here

psci.el

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -117,36 +117,6 @@ See `'comint-send-input`' for more information."
117117
(setq-local comment-start "-- ")
118118
(setq-local comment-use-syntax t))
119119

120-
;; ELISP> (with-current-buffer "*psci*"
121-
;; (psci/--debug-setup!))
122-
;; ("comint-prompt-regexp" "^> "
123-
;; "paragraph-separate" "\\'"
124-
;; "paragraph-start" "^> "
125-
;; "comint-input-sender" comint-simple-send
126-
;; "comint-get-old-input" comint-get-old-input-default
127-
;; "comint-process-echoes" nil
128-
;; "comint-prompt-read-only" t
129-
;; "comint-eol-on-send" t
130-
;; "comint-input-filter-functions" nil
131-
;; "font-lock-defaults" (purescript-font-lock-keywords t)
132-
;; "comment-start" "-- "
133-
;; "comment-use-syntax" t)
134-
135-
(defun psci/--debug-setup! ()
136-
"A function to debug the current major mode's runtime setup."
137-
(list "comint-prompt-regexp" comint-prompt-regexp
138-
"paragraph-separate" paragraph-separate
139-
"paragraph-start" paragraph-start
140-
"comint-input-sender" comint-input-sender
141-
"comint-get-old-input" comint-get-old-input
142-
"comint-process-echoes" comint-process-echoes
143-
"comint-prompt-read-only" comint-prompt-read-only
144-
"comint-eol-on-send" comint-eol-on-send
145-
"comint-input-filter-functions" comint-input-filter-functions
146-
"font-lock-defaults" font-lock-defaults
147-
"comment-start" comment-start
148-
"comment-use-syntax" comment-use-syntax))
149-
150120
(defun psci/--run-psci-command! (command)
151121
"Run psci COMMAND as string."
152122
(-when-let (process (get-buffer-process (psci/process-name psci/buffer-name)))

0 commit comments

Comments
 (0)