(defvar sweep-prolog-server-port nil)
;;;###autoload
-(defun sweep-module-compile ()
+(defun sweep--compile-module ()
"Compile sweep-module."
(interactive)
(let* ((sweep-directory
(unless (require 'sweep-module nil t)
(if (y-or-n-p "Sweep needs `sweep-module' to work. Compile it now? ")
(progn
- (sweep-module-compile)
+ (sweep--compile-module)
(require 'sweep-module))
(error "Sweep will not work until `sweep-module' is compiled!"))))
))))
(defun sweep-colourise-query (buffer)
- (interactive)
(when (buffer-live-p buffer)
(with-current-buffer buffer
(let* ((beg (cdr comint-last-prompt))
(sweep--ensure-module)
(when sweep-init-on-load (sweep-init))
+;;;###autoload
+(defvar sweep-prefix-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "m" #'sweep-find-module)
+ (define-key map "p" #'sweep-find-predicate)
+ (define-key map "t" #'sweep-top-level)
+ (define-key map "P" #'sweep-pack-install)
+ map)
+ "Keymap for `sweep' global commands.")
+
;;;; Testing:
;; (add-to-list 'load-path (file-name-directory (buffer-file-name)))