mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add module-asm.el
This commit is contained in:
1
init.el
1
init.el
@ -54,6 +54,7 @@
|
||||
core-eval ; run code, run + REPL support
|
||||
|
||||
;;; Dev environments
|
||||
module-asm ; Assembly
|
||||
module-cc ; C/C++/Obj-C madness
|
||||
module-crystal ; ruby at the speed of c
|
||||
module-csharp ; unity, .NET, and mono shenanigans
|
||||
|
20
modules/module-asm.el
Normal file
20
modules/module-asm.el
Normal file
@ -0,0 +1,20 @@
|
||||
;;; module-asm.el
|
||||
|
||||
(use-package asm-mode
|
||||
:commands (mips-mode)
|
||||
:mode ("\\.mips" . mips-mode)
|
||||
:config
|
||||
(define-derived-mode mips-mode asm-mode "MIPS"
|
||||
"Major mode for editing MIPS assembler code."
|
||||
;; Unset ; key.
|
||||
(local-unset-key (vector asm-comment-char))
|
||||
(set (make-local-variable #'asm-comment-char) ?#)
|
||||
(local-set-key (vector asm-comment-char) #'asm-comment)
|
||||
;; Update syntax for new comment char.
|
||||
(set-syntax-table (make-syntax-table asm-mode-syntax-table))
|
||||
(modify-syntax-entry asm-comment-char "< b")
|
||||
;; Fix one level comments.
|
||||
(set (make-local-variable #'comment-start) (string asm-comment-char)))
|
||||
|
||||
(provide 'module-asm)
|
||||
;;; module-asm.el ends here
|
Reference in New Issue
Block a user