I use C-j for 'backward-char; however, when editing a .asm file it overwrites C-j to insert new line.
How do I disable this, and/or rebind to 'backward-char.
I use C-j for 'backward-char; however, when editing a .asm file it overwrites C-j to insert new line.
How do I disable this, and/or rebind to 'backward-char.
This should do the trick for you:
(eval-after-load "asm-mode"
'(define-key asm-mode-map (kbd "C-j") 'backward-delete-char))
(put that in your .emacs).
Try a mode-specific hook:
(defun my-asm-mode-hook ()
(local-set-key (kbd "C-j") 'backward-delete-char))
(add-hook 'asm-mode-hook 'my-asm-mode-hook)