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

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

[nongnu] elpa/drupal-mode 05e0a86bed 099/308: Added keyboard shortcut fo


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode 05e0a86bed 099/308: Added keyboard shortcut for `drupal-module-name'.
Date: Tue, 25 Jan 2022 10:59:34 -0500 (EST)

branch: elpa/drupal-mode
commit 05e0a86bedfcdb7a1a3b9b9ce6588015ce461a8c
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    Added keyboard shortcut for `drupal-module-name'.
    
     * `C-c C-v C-m' calls `drupal-module-name'.
     * Used '(control c) (control v) (control m)' as keyboard syntax for
       all keyboard shortcuts.
---
 drupal-mode.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 6d5ddbc2ba..0b5a3df5ac 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -186,10 +186,11 @@ Include path to the executable if it is not in your 
$PATH."
 
 (defvar drupal-mode-map
   (let ((map (make-sparse-keymap)))
-    (define-key map "\C-c\C-v\C-d" #'drupal-search-documentation)
-    (define-key map "\C-c\C-v\C-c" #'drupal-drush-cache-clear)
-    (define-key map "\C-c\C-v\C-h" #'drupal-insert-hook)
-    (define-key map "\C-c\C-v\C-f" #'drupal-insert-function)
+    (define-key map [(control c) (control v) (control d)] 
#'drupal-search-documentation)
+    (define-key map [(control c) (control v) (control c)] 
#'drupal-drush-cache-clear)
+    (define-key map [(control c) (control v) (control h)] #'drupal-insert-hook)
+    (define-key map [(control c) (control v) (control f)] 
#'drupal-insert-function)
+    (define-key map [(control c) (control v) (control m)] #'drupal-module-name)
     map)
   "Keymap for `drupal-mode'")
 



reply via email to

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