branch: elpa/swift-mode commit 14c6bddbc121d3dcf4a8ec547c89d63ca74169a3 Author: Chris Barrett <chris.d.barr...@me.com> Commit: Chris Barrett <chris.d.barr...@me.com>
Add swift repl commands to mode map --- swift-mode.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/swift-mode.el b/swift-mode.el index cc8013d..ba37010 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -409,6 +409,14 @@ You can send text to the REPL process from other buffers containing source. table)) ;;;###autoload +(defvar swift-mode-map + (let ((km (make-sparse-keymap))) + (define-key km (kbd "C-c C-z") 'swift-mode-run-repl) + (define-key km (kbd "C-c C-f") 'swift-mode-send-buffer) + (define-key km (kbd "C-c C-r") 'swift-mode-send-region)) + "Key km for swift mode.") + +;;;###autoload (define-derived-mode swift-mode prog-mode "Swift" "Major mode for Apple's Swift programming language.