Add module-asm.el
This commit is contained in:
parent
29616b02d3
commit
84448c77fa
2 changed files with 21 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue