;; Emacs settings for NASM ;; 2002, written by Manfred Minimair ; Make sure that that emacs switches into assembler mode ; when a .asm file is opened. (setq auto-mode-alist (append ;; File name (within directory) ends with .asm '(("\\.asm\\'" . asm-mode)) auto-mode-alist)) ; Customize the compilation command for the assembler mode ; Compiles assembler files "file.asm" with ; make -k -e EXECUTABLE=file (add-hook 'asm-mode-hook (function (lambda () (make-local-variable 'compile-command) (setq compile-command (concat "make -k -e EXECUTABLE=" (file-name-sans-extension (file-name-nondirectory buffer-file-name))) ))))