emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode 14c6bdd 079/496: Add swift repl commands to mod


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 14c6bdd 079/496: Add swift repl commands to mode map
Date: Sun, 29 Aug 2021 11:33:11 -0400 (EDT)

branch: elpa/swift-mode
commit 14c6bddbc121d3dcf4a8ec547c89d63ca74169a3
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@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.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]