summaryrefslogtreecommitdiff
path: root/lisp/net/snmp-mode.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-07-09 14:38:48 +0200
committerStefan Kangas <stefan@marxist.se>2022-07-09 15:34:04 +0200
commitf6840328c0bc3daa151a1dc42ba030eb6240a853 (patch)
tree6b34321f9c5c8866c53e0cc0f64e655bd8825aec /lisp/net/snmp-mode.el
parent30cf1f34c583d6ed16bdc5b9578370f30c95fe1b (diff)
downloademacs-f6840328c0bc3daa151a1dc42ba030eb6240a853.tar.gz
emacs-f6840328c0bc3daa151a1dc42ba030eb6240a853.tar.bz2
emacs-f6840328c0bc3daa151a1dc42ba030eb6240a853.zip
Prefer defvar-keymap in net/*.el
* lisp/net/dictionary.el (dictionary-mode-map): * lisp/net/dig.el (dig-mode-map): * lisp/net/eudc-hotlist.el (eudc-hotlist-mode-map): * lisp/net/eudc.el (eudc-mode-map): * lisp/net/mairix.el (mairix-searches-mode-map): * lisp/net/newst-treeview.el (newsticker-treeview-list-sort-button-map) (newsticker-treeview-mode-map): * lisp/net/quickurl.el (quickurl-list-mode-map): * lisp/net/rcirc.el (rcirc-mode-map) (rcirc-multiline-minor-mode-map, rcirc-track-minor-mode-map): * lisp/net/rlogin.el (rlogin-mode-map): * lisp/net/secrets.el (secrets-mode-map): * lisp/net/sieve-mode.el (sieve-mode-map): * lisp/net/sieve.el (sieve-manage-mode-map): * lisp/net/snmp-mode.el (snmp-mode-map): * lisp/net/telnet.el (telnet-mode-map): Prefer defvar-keymap.
Diffstat (limited to 'lisp/net/snmp-mode.el')
-rw-r--r--lisp/net/snmp-mode.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/net/snmp-mode.el b/lisp/net/snmp-mode.el
index de84b4f8dd1..394c4a9666d 100644
--- a/lisp/net/snmp-mode.el
+++ b/lisp/net/snmp-mode.el
@@ -248,14 +248,12 @@ This is used during Tempo template completion."
;; Set up our keymap
;;
-(defvar snmp-mode-map
- (let ((map (make-sparse-keymap)))
- (define-key map "\177" 'backward-delete-char-untabify)
- (define-key map "\C-c\C-i" 'tempo-complete-tag)
- (define-key map "\C-c\C-f" 'tempo-forward-mark)
- (define-key map "\C-c\C-b" 'tempo-backward-mark)
- map)
- "Keymap used in SNMP mode.")
+(defvar-keymap snmp-mode-map
+ :doc "Keymap used in SNMP mode."
+ "DEL" #'backward-delete-char-untabify
+ "C-c TAB" #'tempo-complete-tag
+ "C-c C-f" #'tempo-forward-mark
+ "C-c C-b" #'tempo-backward-mark)
;; Set up our syntax table