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

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

Migrating from hilit


From: emacsy
Subject: Migrating from hilit
Date: Fri, 8 May 2009 10:51:17 -0700 (PDT)

I am trying to take off all hilit19 references in an .emacs file I got from a
friend. I am using assembly code alot and I need to convert this snippet of
code by taking off all hilit functions:hilit-string-find,
hilit-set-mode-patterns. Could someone please help.
This is the code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ASM mode 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  (setq            auto-mode-alist           (append '(("\\.S\\'"  .
asm-mode)) auto-mode-alist) )
  (add-hook        'asm-mode-hook            '(lambda ()
(modify-syntax-entry ?_ "w   " asm-mode-syntax-table))) ;; change _ to be
part of a word in asm mode
  (let             ((comments                '(("/\\*" "\\*/" comment)))
                    (strings                 '((hilit-string-find ?'
string)))
                    (preprocessor            '(("^#[
\t]*\\(undef\\|define\\).*$" "[^\\]$" define)
                                                       ("^#.*$" nil include)))
                    )
                   (hilit-set-mode-patterns
                    'asm-mode
                    (append
                     comments strings preprocessor
                     '(
                       ("^\\(\\(\\.\\|_\\|\\sw\\)+:\\)" nil msg-subject)
                       ;; key words
                      
("\\.\\b\\(org\\|data\\|text\\|word\\|char\\|globl\\|align\\|skip\\)\\b" nil
keyword)
                       ("\\(%hi\\|%lo\\)" nil include)
                       ;; branch instructions
                      
("\\b\\(b\\|bt\\|bf\\|bdn?z\\|bdn?zt\\|bdzf\\|blt\\|ble\\|beq\\|bge\\|bgt\\|bnl\\|bne\\|bng\\|bso\\|bns\\|bun\\|bnu\\|bc\\)\\(l?a?\\|lrl?\\|ctrl?\\)\\b"
nil label)
                       ("\\b\\(sc\\|rfi\\)\\b" nil label)
                       ))
                    )
                   )
-- 
View this message in context: 
http://www.nabble.com/Migrating-from-hilit-tp23450494p23450494.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





reply via email to

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