[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nasm-mode b595921 11/67: Add nasm-colon key binding.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nasm-mode b595921 11/67: Add nasm-colon key binding. |
Date: |
Sun, 29 Aug 2021 11:23:43 -0400 (EDT) |
branch: elpa/nasm-mode
commit b595921533e91041f825cd90a27f2cf41556ae42
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Add nasm-colon key binding.
---
nasm-mode.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/nasm-mode.el b/nasm-mode.el
index af3e9fa..0a21da5 100644
--- a/nasm-mode.el
+++ b/nasm-mode.el
@@ -420,6 +420,18 @@
(modify-syntax-entry ?\` "\"" table)))
"Syntax table for `nasm-mode'.")
+(defvar nasm-mode-map
+ (let ((map (make-sparse-keymap)))
+ (prog1 map
+ (define-key map (kbd ":") #'nasm-colon)))
+ "Key bindings for `nasm-mode'.")
+
+(defun nasm-colon ()
+ "Insert a colon and convert the current line into a label."
+ (interactive)
+ (call-interactively 'self-insert-command)
+ (nasm-indent-line))
+
(defmacro nasm--opt (keywords)
"Prepare KEYWORDS for `looking-at'."
`(eval-when-compile
- [nongnu] elpa/nasm-mode ca9d65f 26/67: Default nasm-basic-offset to tab-width., (continued)
- [nongnu] elpa/nasm-mode ca9d65f 26/67: Default nasm-basic-offset to tab-width., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode fa44b36 38/67: Remove some junk from nasm-instructions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 694160a 46/67: Add README note., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode e8ca8b9 50/67: Make comment-start local., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 1ec7d0a 53/67: Add a LIMIT argument to looking-back call, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 9a5f989 57/67: Fix docstring indentation for nasm-font-lock-keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 832caad 59/67: Make semicolons behave when typed into strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode af3d935 61/67: Allow directive names as labels (font-locking), ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 01f90c3 03/67: Fix byte-compiler breakage., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode ad2ff83 05/67: Add .gitignore., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode b595921 11/67: Add nasm-colon key binding.,
ELPA Syncer <=
- [nongnu] elpa/nasm-mode 10f775e 28/67: Update instruction listing, since some were missing., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 213331e 31/67: Oops, bump version number., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode b2469e0 33/67: Add context-sensitive comment handling., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 4de4e56 47/67: Add clzero, monitorx, and mwaitx to instructions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 5b0d30f 58/67: Allow prefix in point following mnemonic check, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode e072340 60/67: Update TODO list, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 1d4871e 66/67: Use sharp quotes on expressions added in last commit, ELPA Syncer, 2021/08/29