branch: elpa/swift-mode commit a8fa421a8e5e5afd54a17d35220d4418fca6b175 Author: Bozhidar Batsov <bozhi...@batsov.com> Commit: Bozhidar Batsov <bozhi...@batsov.com>
Use a more descriptive map variable name inside its definition --- swift-mode.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/swift-mode.el b/swift-mode.el index 8f2df9c..38569de 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -405,11 +405,11 @@ You can send text to the REPL process from other buffers containing source. ;;;###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) - (easy-menu-define swift-menu km "Swift Mode menu" + (let ((map (make-sparse-keymap))) + (define-key map (kbd "C-c C-z") 'swift-mode-run-repl) + (define-key map (kbd "C-c C-f") 'swift-mode-send-buffer) + (define-key map (kbd "C-c C-r") 'swift-mode-send-region) + (easy-menu-define swift-menu map "Swift Mode menu" `("Swift" :help "Swift-specific Features" ["Run REPL" swift-mode-run-repl @@ -418,8 +418,8 @@ You can send text to the REPL process from other buffers containing source. :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.") + map) + "Key map for swift mode.") ;;;###autoload (define-derived-mode swift-mode prog-mode "Swift"