emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* use the org-mode for scheme batch files
@ 2007-06-07 14:15 Fabian Braennstroem
  2007-06-15  5:48 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Braennstroem @ 2007-06-07 14:15 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I would like to use org-mode's ability for outlining and syntax
highlighting for some scheme batch files.
The file looks like this:


	;------------------------------------------------------------------------------------------------------------
	; Gitter !
	/file/read-case 9A1.024.1Z.msh
	
	;------------------------------------------------------------------------------------------------------------
	; Gitter Skalierung
	; m -> mm
	/grid/scale 0.001 0.001 0.001

	;------------------------------------------------------------------------------------------------------------

	; Randbedingungen
	blabla


I would like to achive outlining for the lines with certain key
words like
	; Gitter !
	; Gitter Skalierung
	; Randbedingungen

First, I tried an 'easy' workaround: I wanted to create outlining
for every line starting with ';' :
  (setq outline-regexp "\\; +")

Then, the outlining works well, but the org-mode top-level
syntax-highlighting
has to be adjusted too;
I suppose I have to change:
           '("^\\(\\**\\)\\(\\*\\)\\(.*\\)" (4 (org-get-level-face 1))
But I can not understand that...

I would be nice, if anybody has an idea, how I can get those lines
(especially those keyword lines) outlined with org-mode in the
background; with org-mode in the background I have much additional
possibility to adjust ...

Regards!
Fabian

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

* Re: use the org-mode for scheme batch files
  2007-06-07 14:15 use the org-mode for scheme batch files Fabian Braennstroem
@ 2007-06-15  5:48 ` Carsten Dominik
  2007-06-17 12:36   ` Fabian Braennstroem
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2007-06-15  5:48 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: emacs-orgmode


On Jun 7, 2007, at 16:15, Fabian Braennstroem wrote:

> Hi,
>
> I would like to use org-mode's ability for outlining and syntax
> highlighting for some scheme batch files.
> The file looks like this:

It does not sound promising to me to use org-mode for
syntax highlighting in some other file.  Much better to
write font-lock for whatever mode is editing that file,
and then to use outline-minor mode do the folding.

You can get cycling with TAB also in outline-minor-mode, there
is an entry in the org-mode FAQ about this.

- Carsten

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

* Re: use the org-mode for scheme batch files
  2007-06-15  5:48 ` Carsten Dominik
@ 2007-06-17 12:36   ` Fabian Braennstroem
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Braennstroem @ 2007-06-17 12:36 UTC (permalink / raw)
  To: emacs-orgmode

Hi Carsten,


Carsten Dominik schrieb am 06/15/2007 05:48 AM:
> On Jun 7, 2007, at 16:15, Fabian Braennstroem wrote:
> 
>> Hi,
>>
>> I would like to use org-mode's ability for outlining and syntax
>> highlighting for some scheme batch files.
>> The file looks like this:
> 
> It does not sound promising to me to use org-mode for
> syntax highlighting in some other file.  Much better to
> write font-lock for whatever mode is editing that file,
> and then to use outline-minor mode do the folding.

> You can get cycling with TAB also in outline-minor-mode, there
> is an entry in the org-mode FAQ about this.

Thanks for your help, I think you are right ... I will adjust the
'plain' outline for my purposes.

Regards!
Fabian

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

end of thread, other threads:[~2007-06-17 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07 14:15 use the org-mode for scheme batch files Fabian Braennstroem
2007-06-15  5:48 ` Carsten Dominik
2007-06-17 12:36   ` Fabian Braennstroem

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).