Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Re: [interchange] Add emacs major mode for ITL

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


peter at pajamian

Jul 14, 2013, 11:31 PM

Post #1 of 2 (47 views)
Permalink
Re: [interchange] Add emacs major mode for ITL

On 07/15/2013 06:24 PM, Jon Jensen wrote:
> commit 349a71055d7ec54193d161d997f0db83c0423811
> Author: Jon Jensen <jon [at] endpoint>
> Date: Mon Jul 15 07:23:00 2013 +0100
>
> Add emacs major mode for ITL

Oh very cool, I will definately be giving this a try. Do you think it's
possible to give it the ability to recognize perl and calc[n] blocks and
switch to perl mode inside of those?


Peter

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Jul 15, 2013, 12:22 AM

Post #2 of 2 (43 views)
Permalink
Re: [interchange] Add emacs major mode for ITL [In reply to]

On 07/15/2013 08:31 AM, Peter wrote:
> On 07/15/2013 06:24 PM, Jon Jensen wrote:
>> commit 349a71055d7ec54193d161d997f0db83c0423811
>> Author: Jon Jensen <jon [at] endpoint>
>> Date: Mon Jul 15 07:23:00 2013 +0100
>>
>> Add emacs major mode for ITL
>
> Oh very cool, I will definately be giving this a try. Do you think it's possible to give it the ability to recognize perl and calc[n] blocks and switch to perl mode inside of those?
>

You can do this with MMM, configuration example:

(require 'mmm-mode)
(setq mmm-global-mode 'maybe)

(mmm-add-group
'interchange
'(
(itl-perl
:submode cperl-mode
:face mmm-code-submode-face
:front "\\\[perl.*?\\\]"
:back "\\\[/perl\\\]")

(itl-calc
:submode cperl-mode
:face mmm-code-submode-face
:front "\\\[\\(calcn?\\)\\\]"
:back "\\\[/~1\\\]"
:save-matches 1)
(itl-heredoc
:submode cperl-mode
:face mmm-code-submode-face
:front "<<\\([a-zA-Z0-9_-]+\\)"
:back "^~1$"
:save-matches 1)
))

;; embedded CSS
(add-to-list 'mmm-mode-ext-classes-alist '(hm--html-mode nil embedded-css))
;; embedded JavaScript
(add-to-list 'mmm-mode-ext-classes-alist '(hm--html-mode nil html-js))
;; embedded Perl within IC
(add-to-list 'mmm-mode-ext-classes-alist '(hm--html-mode nil interchange))
(add-to-list 'mmm-mode-ext-classes-alist '(fundamental-mode nil interchange))

Regards
Racke


--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.