help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with asm-mode-hook


From: Anders K.
Subject: Problem with asm-mode-hook
Date: Fri, 23 May 2003 02:01:51 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030508

I'm trying to change the assembler mode comment character from ; to #, so I put this at the end of ~/.emacs:

(defun my-asm-mode-hook ()
  (setq asm-comment-char ?#))
(add-hook 'asm-mode-hook 'my-asm-mode-hook)

Unfortunately, the change only takes effect starting with the second assembly file I open. Anyone know why? (I have a similar c-mode-common-hook that works perfectly.)

Anders



reply via email to

[Prev in Thread] Current Thread [Next in Thread]