summaryrefslogtreecommitdiff
path: root/emacs/coding-config.el
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2024-01-21 21:11:04 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2024-01-21 21:11:04 -0800
commit42657d86e68ca136b1532275679390803eea17e7 (patch)
treeb76290ca1ec06237500ee5e7cc257d6f3f87ac07 /emacs/coding-config.el
parentc321769ac3a7b84d4ccd5f84ed64fd78291115a6 (diff)
asm tags
Diffstat (limited to 'emacs/coding-config.el')
-rw-r--r--emacs/coding-config.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/coding-config.el b/emacs/coding-config.el
index 881d311..ad41b54 100644
--- a/emacs/coding-config.el
+++ b/emacs/coding-config.el
@@ -31,6 +31,13 @@
(setq asm-comment-char ?#)
+(add-hook 'asm-mode-hook
+ (lambda ()
+ (add-hook 'after-save-hook
+ (lambda ()
+ (shell-command
+ "find . -iregex '.*\\.[sS]' -exec etags -l none -r '/\\([a-zA-Z0-9\\-_]+\\):/\1/' {} +")))))
+
;; nice eglot binds
(global-set-key (kbd "C-c f") 'eglot-code-action-quickfix)
(global-set-key (kbd "C-c C-f") 'eglot-code-actions)