2009-01-02 19:06:25 +00:00
|
|
|
;;; sclang-minor-mode for use in help files
|
|
|
|
;;; SuperCollider
|
|
|
|
;;; (c) 2007, Marije Baalman - nescivi
|
|
|
|
;;; released under GPL
|
|
|
|
|
|
|
|
(easy-mmode-define-minor-mode sclang-minor-mode
|
|
|
|
"Toggle sclang-minor-mode.
|
2009-09-26 06:17:48 +00:00
|
|
|
With no argument, this command toggles the mode.
|
2009-01-02 19:06:25 +00:00
|
|
|
Non-null prefix argument turns on the mode.
|
|
|
|
Null prefix argument turns off the mode.
|
|
|
|
|
|
|
|
When sclang-minor-mode is enabled, you can execute
|
2009-04-27 16:50:00 +00:00
|
|
|
sclang code with the normal command C-c C-c and C-c C-d."
|
2009-01-02 19:06:25 +00:00
|
|
|
;; The initial value.
|
|
|
|
nil
|
|
|
|
;; The indicator for the mode line.
|
|
|
|
" sclang"
|
|
|
|
;; The minor mode bindings.
|
|
|
|
'(("\C-c\C-c" . sclang-eval-region-or-line)
|
2009-04-27 16:50:00 +00:00
|
|
|
("\C-c\C-d" . sclang-eval-region)
|
2009-09-26 06:17:48 +00:00
|
|
|
("\C-\M-x" . sclang-eval-defun)
|
2009-01-02 19:06:25 +00:00
|
|
|
("\C-c\C-h" . sclang-find-help)
|
|
|
|
("\C-\M-h" . sclang-goto-help-browser)
|
|
|
|
("\C-c\C-s" . sclang-main-stop)
|
2009-04-09 20:53:47 +00:00
|
|
|
("\C-c\C-k" . sclang-edit-dev-source)
|
2009-01-02 19:06:25 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
(provide 'sclang-minor-mode)
|
|
|
|
|
|
|
|
(easy-mmode-define-minor-mode sclang-help-minor-mode
|
|
|
|
"Toggle sclang-minor-mode.
|
2009-09-26 06:17:48 +00:00
|
|
|
With no argument, this command toggles the mode.
|
2009-01-02 19:06:25 +00:00
|
|
|
Non-null prefix argument turns on the mode.
|
|
|
|
Null prefix argument turns off the mode.
|
|
|
|
|
|
|
|
When sclang-help-minor-mode is enabled, you can execute
|
2009-04-27 16:50:00 +00:00
|
|
|
sclang code with the normal command C-c C-c and C-c C-d."
|
2009-01-02 19:06:25 +00:00
|
|
|
;; The initial value.
|
|
|
|
nil
|
|
|
|
;; The indicator for the mode line.
|
|
|
|
" sclang-help"
|
|
|
|
;; The minor mode bindings.
|
|
|
|
'(("\C-c\C-c" . sclang-eval-region-or-line)
|
2009-04-27 16:50:00 +00:00
|
|
|
("\C-c\C-d" . sclang-eval-region)
|
2009-01-02 19:06:25 +00:00
|
|
|
("\C-\M-x" . sclang-eval-defun)
|
|
|
|
("\C-c\C-h" . sclang-find-help)
|
|
|
|
("\C-c\C-s" . sclang-main-stop)
|
|
|
|
("\C-c\C-v" . sclang-edit-html-help-file)
|
|
|
|
("E" . sclang-edit-help-code)
|
2009-04-09 20:53:47 +00:00
|
|
|
("\C-c\C-k" . sclang-edit-dev-source)
|
2009-01-02 19:06:25 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
(provide 'sclang-help-minor-mode)
|
|
|
|
|
|
|
|
(add-hook 'sclang-help-minor-mode-hook 'sclang-minor-hooks)
|
|
|
|
(add-hook 'sclang-minor-mode-hook 'sclang-minor-hooks)
|
|
|
|
|
|
|
|
(defun sclang-minor-hooks ()
|
|
|
|
(sclang-init-document)
|
|
|
|
(sclang-make-document)
|
|
|
|
)
|