no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | people:priestdo:tips:z80asm_in_emacs [2008/02/20 14:02] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Using emacs with z80asm ====== | ||
| + | First off, I want to state **I am not a lisp podgammer**((yeah, | ||
| + | |||
| + | OK, now that that is out of the way, this is what I added to my .emacs when I started using '' | ||
| + | |||
| + | <code lisp> | ||
| + | ;; | ||
| + | ;; mods for z80asm GEP-D 2008-02 | ||
| + | ;; | ||
| + | ;; | ||
| + | ;; add " | ||
| + | ;; | ||
| + | (setq auto-mode-alist (cons ' | ||
| + | (" | ||
| + | auto-mode-alist)) | ||
| + | ;; | ||
| + | ;; z80 compile | ||
| + | ;; | ||
| + | ;; if either a " | ||
| + | ;; build a compile command where you get a listing and output such | ||
| + | ;; that running it on FILENAME.asm gets you FILENAME.lst and FILENAME.rom | ||
| + | ;; | ||
| + | ;; Then bind it to f5 'cus I'm use to it being there. | ||
| + | ;; | ||
| + | (add-hook ' | ||
| + | (function | ||
| + | (lambda () | ||
| + | (unless (or (file-exists-p " | ||
| + | (file-exists-p " | ||
| + | (make-local-variable ' | ||
| + | (setq compile-command | ||
| + | (concat " | ||
| + | (buffer-file-name) " --output=" | ||
| + | ion buffer-file-name) " | ||
| + | e) " | ||
| + | (local-set-key [f5] ' | ||
| + | )))) | ||
| + | ;; | ||
| + | ;; end of z80asm mods | ||
| + | ;; | ||
| + | </ | ||
| + | |||
| + | --- // | ||