all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Configuring asm-mode
@ 2005-11-24 14:47 Kenneth Jacker
  2005-11-24 16:04 ` Thien-Thi Nguyen
  2005-11-24 18:17 ` Pascal Bourguignon
  0 siblings, 2 replies; 4+ messages in thread
From: Kenneth Jacker @ 2005-11-24 14:47 UTC (permalink / raw)


[ I posted this on comp.emacs over a week ago, but got no response(s) ]
[ ... please forgive it you've already seen it!  -khj                 ]

It appears that the only aspect of 'asm-mode' that is easy to
configure is the "comment character".

How might I change the default comment and indentation rules?

Is my only option to modify or override what's in the "asm-mode.el"?

Thanks for your ideas!
-- 
Prof Kenneth H Jacker       khj@cs.appstate.edu
Computer Science Dept       www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC  28608  USA        

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Configuring asm-mode
  2005-11-24 14:47 Configuring asm-mode Kenneth Jacker
@ 2005-11-24 16:04 ` Thien-Thi Nguyen
  2005-11-24 18:17 ` Pascal Bourguignon
  1 sibling, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2005-11-24 16:04 UTC (permalink / raw)


Kenneth Jacker <khj@be.cs.appstate.edu> writes:

> It appears that the only aspect of 'asm-mode' that is easy to
> configure is the "comment character".

only the comment character is easy to "customize".  the other handful of
variables can be set directly (w/ `setq'), which is relatively easy to do
in your ~/.emacs or a file loaded from there.

> How might I change the default comment and indentation rules?
> Is my only option to modify or override what's in the "asm-mode.el"?

it all depends on what kinds of changes you want to make.

perhaps you can post a fragment of the assembly code, a description of
the current (mis)behavior when editing this code, and a description of
the desired behavior.  it will be easier for people to understand (and
perhaps answer) your questions w/ this detailed information.  otherwise,
the only immediate answer is "everything is possible depending on how
much effort or funding you put into it", and you probably already knew
that.

thi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Configuring asm-mode
  2005-11-24 14:47 Configuring asm-mode Kenneth Jacker
  2005-11-24 16:04 ` Thien-Thi Nguyen
@ 2005-11-24 18:17 ` Pascal Bourguignon
  2005-11-25 17:10   ` khjacker
  1 sibling, 1 reply; 4+ messages in thread
From: Pascal Bourguignon @ 2005-11-24 18:17 UTC (permalink / raw)


Kenneth Jacker <khj@be.cs.appstate.edu> writes:

> [ I posted this on comp.emacs over a week ago, but got no response(s) ]
> [ ... please forgive it you've already seen it!  -khj                 ]
>
> It appears that the only aspect of 'asm-mode' that is easy to
> configure is the "comment character".
>
> How might I change the default comment and indentation rules?
>
> Is my only option to modify or override what's in the "asm-mode.el"?

Well, when I typed in some 7090 assembler, I wrote my own font-locking
and setting tabs and comment character:

;; ...

(defun asm7090-font-lock ()
  (interactive)
  (setq font-lock-defaults nil
        font-lock-keywords nil)
  (font-lock-add-keywords 
   nil
   (list
    (list
     (function search-asm7090-fields) ; parses an asm line.
     '(1 font-lock-function-name-face)       ; labels
     '(2 font-lock-keyword-face)             ; operation codes
     '(3 font-lock-reference-face)           ; arguments
     '(4 font-lock-comment-face)             ; comments
     '(5 font-lock-preprocessor-face)        ; ibsys
     '(6 font-lock-type-face)                ; cols 72-80
     ))))


(defun asm7090 ()
  (interactive)
  (asm7090-font-lock)
  (make-local-variable 'tab-stop-list)
  (setf tab-stop-list     '(0 7 15 34 72)
        asm-comment-char   ?*)
  (local-set-key (kbd "TAB") (function tab-to-tab-stop))
  (local-set-key (kbd "RET") (lambda ()
                               (interactive) 
                               (asm7090-describe-codop) 
                               (newline-and-indent)))
  (font-lock-mode 1)
  (message "asm7090 activated"))



You can fetch it with:

cvs -z3 -d :pserver:anonymous@cvs.informatimago.com:/usr/local/cvs/public/chrooted-cvs/cvs co emacs/
http://www.informatimago.com/develop/emacs/index.html


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
__Pascal Bourguignon__                     http://www.informatimago.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Configuring asm-mode
  2005-11-24 18:17 ` Pascal Bourguignon
@ 2005-11-25 17:10   ` khjacker
  0 siblings, 0 replies; 4+ messages in thread
From: khjacker @ 2005-11-25 17:10 UTC (permalink / raw)


Sorry, but our NNTP server has been down for a few days and I didn't
see the helpful replies to my original article until just now (using
groups.google.com).  I'll try and write again RSN.

  -Kenneth

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-25 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-24 14:47 Configuring asm-mode Kenneth Jacker
2005-11-24 16:04 ` Thien-Thi Nguyen
2005-11-24 18:17 ` Pascal Bourguignon
2005-11-25 17:10   ` khjacker

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.