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

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

[nongnu] elpa/swift-mode 3a82dd5 085/496: Add mode menu


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 3a82dd5 085/496: Add mode menu
Date: Sun, 29 Aug 2021 11:33:13 -0400 (EDT)

branch: elpa/swift-mode
commit 3a82dd50e59feab231f8f9eef3e6d7a1f4aafee6
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    Add mode menu
---
 swift-mode.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/swift-mode.el b/swift-mode.el
index c402dc8..8f2df9c 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -409,6 +409,15 @@ You can send text to the REPL process from other buffers 
containing source.
     (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)
+    (easy-menu-define swift-menu km "Swift Mode menu"
+      `("Swift"
+        :help "Swift-specific Features"
+        ["Run REPL" swift-mode-run-repl
+         :help "Run Swift REPL"]
+        ["Send buffer to REPL" swift-mode-send-buffer
+         :help "Send the current buffer's contents to the REPL"]
+        ["Send region to REPL" swift-mode-send-region
+         :help "Send currently selected region to the REPL"]))
     km)
   "Key km for swift mode.")
 



reply via email to

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