all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: myrkraverk@users.sourceforge.net
Cc: help-gnu-emacs@gnu.org
Subject: Problem with asm-mode-hook
Date: Fri, 23 May 2003 05:24:30 +0000	[thread overview]
Message-ID: <16077.45198.883451.24900@jin.tekken> (raw)
In-Reply-To: <jifza.75455$5M.5457869@twister.southeast.rr.com>

Hi,

Anders K. writes:
 > 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.)

I've successfully customized this variable to the # char.  You may
want to try M-x customize-variable RET asm-comment-char RET.  Note,
for this to work, asm mode has to be loaded already.

Note also that asm-mode doesn't insert the # (comment char) into text
fields, i.e. quotes sucha as " " and ' '.

  http://myrkraverk.afraid.org/~myrkraverk/masp-mode.el

will do that for you, and I believe the default comment char is #, but
I don't remember that actaully.  Otherwise it's basically the same as
asm-mode.  If you don't mind any extra syntax highlight for my
preprocessor.


Hope this helps,

Johann

-- 
This line is left blank intentionally

  reply	other threads:[~2003-05-23  5:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23  2:01 Problem with asm-mode-hook Anders K.
2003-05-23  5:24 ` myrkraverk [this message]
2003-05-23  5:29 ` myrkraverk
     [not found] ` <mailman.6625.1053668066.21513.help-gnu-emacs@gnu.org>
2003-05-24  3:03   ` Anders K.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16077.45198.883451.24900@jin.tekken \
    --to=myrkraverk@users.sourceforge.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.