* [babel] Enabling language mode for plantuml?
@ 2010-12-02 10:10 Rainer M Krug
2010-12-02 19:42 ` Eric Schulte
2010-12-03 11:31 ` zwz
0 siblings, 2 replies; 9+ messages in thread
From: Rainer M Krug @ 2010-12-02 10:10 UTC (permalink / raw)
To: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I would like to be able to edit code blocks of plantuml via C-', but I
get the message
No such language mode: plantuml-mode
Is there an easy way of defining this new language mode, so that I can
edit it via C-'?
I don't need syntax highlighting at the moment, although ' as the
comment character would be nice.
Thanks,
Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkz3cJoACgkQoYgNqgF2egrd6QCeIY22tkaAKMhU263YpW+O515N
JLsAoIGyTFa+cWyc6aq52wuabP0NQNBh
=J2EM
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] Enabling language mode for plantuml?
2010-12-02 10:10 [babel] Enabling language mode for plantuml? Rainer M Krug
@ 2010-12-02 19:42 ` Eric Schulte
2010-12-03 9:13 ` Rainer M Krug
2010-12-03 11:31 ` zwz
1 sibling, 1 reply; 9+ messages in thread
From: Eric Schulte @ 2010-12-02 19:42 UTC (permalink / raw)
To: Rainer M Krug; +Cc: emacs-orgmode
Hi Rainer,
Try something like the following
#+begin_src emacs-lisp
(add-to-list 'org-src-lang-modes '("plantuml" . fundamental))
#+end_src
Perhaps the above code should be part of the ob-plantuml.el file.
Best -- Eric
Rainer M Krug <r.m.krug@gmail.com> writes:
> Hi
>
> I would like to be able to edit code blocks of plantuml via C-', but I
> get the message
> No such language mode: plantuml-mode
>
> Is there an easy way of defining this new language mode, so that I can
> edit it via C-'?
> I don't need syntax highlighting at the moment, although ' as the
> comment character would be nice.
>
> Thanks,
>
> Rainer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] Enabling language mode for plantuml?
2010-12-02 19:42 ` Eric Schulte
@ 2010-12-03 9:13 ` Rainer M Krug
0 siblings, 0 replies; 9+ messages in thread
From: Rainer M Krug @ 2010-12-03 9:13 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/02/2010 08:42 PM, Eric Schulte wrote:
> Hi Rainer,
Hi Eric,
>
> Try something like the following
works nicely - thanks.
>
> #+begin_src emacs-lisp
> (add-to-list 'org-src-lang-modes '("plantuml" . fundamental))
> #+end_src
>
> Perhaps the above code should be part of the ob-plantuml.el file.
Yes. That would be useful.
Is there an easy way of bringing some syntax highlighting and comments
character into the C' buffer?
Rainer
>
> Best -- Eric
>
> Rainer M Krug <r.m.krug@gmail.com> writes:
>
>> Hi
>>
>> I would like to be able to edit code blocks of plantuml via C-', but I
>> get the message
>> No such language mode: plantuml-mode
>>
>> Is there an easy way of defining this new language mode, so that I can
>> edit it via C-'?
>> I don't need syntax highlighting at the moment, although ' as the
>> comment character would be nice.
>>
>> Thanks,
>>
>> Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkz4tK4ACgkQoYgNqgF2egpmEwCeL2LSCALKzyKQ8eIhkfzoeKSh
AYMAninhOQtKyecyKxZ1qapgBYJ5jCwy
=zoWi
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] Enabling language mode for plantuml?
2010-12-02 10:10 [babel] Enabling language mode for plantuml? Rainer M Krug
2010-12-02 19:42 ` Eric Schulte
@ 2010-12-03 11:31 ` zwz
2010-12-03 12:09 ` Rainer M Krug
2010-12-03 15:08 ` Rainer M Krug
1 sibling, 2 replies; 9+ messages in thread
From: zwz @ 2010-12-03 11:31 UTC (permalink / raw)
To: emacs-orgmode
Rainer M Krug <r.m.krug@gmail.com> writes:
> Hi
>
> I would like to be able to edit code blocks of plantuml via C-', but I
> get the message
> No such language mode: plantuml-mode
>
> Is there an easy way of defining this new language mode, so that I can
> edit it via C-'?
> I don't need syntax highlighting at the moment, although ' as the
> comment character would be nice.
>
> Thanks,
>
> Rainer
Hi, Rainer
I wrote a plantuml-mode, which is now not perfect but usable.
It is available on:
http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/
Just copy the code and save it as "plantuml-mode.el" in a path where
emacs finds its libraries.
Best regards,
zwz
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: [babel] Enabling language mode for plantuml?
2010-12-03 11:31 ` zwz
@ 2010-12-03 12:09 ` Rainer M Krug
2010-12-05 7:28 ` zwz
2010-12-03 15:08 ` Rainer M Krug
1 sibling, 1 reply; 9+ messages in thread
From: Rainer M Krug @ 2010-12-03 12:09 UTC (permalink / raw)
To: zwz; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1613 bytes --]
Hi zwz
That looks great. Do you have a repository, where I could check for updates?
Rainer
On Fri, Dec 3, 2010 at 12:31 PM, zwz <zhangweize@gmail.com> wrote:
> Rainer M Krug <r.m.krug@gmail.com> writes:
>
> > Hi
> >
> > I would like to be able to edit code blocks of plantuml via C-', but I
> > get the message
> > No such language mode: plantuml-mode
> >
> > Is there an easy way of defining this new language mode, so that I can
> > edit it via C-'?
> > I don't need syntax highlighting at the moment, although ' as the
> > comment character would be nice.
> >
> > Thanks,
> >
> > Rainer
> Hi, Rainer
>
> I wrote a plantuml-mode, which is now not perfect but usable.
> It is available on:
> http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/
>
> Just copy the code and save it as "plantuml-mode.el" in a path where
> emacs finds its libraries.
>
> Best regards,
> zwz
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
--
NEW GERMAN FAX NUMBER!!!
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Cell: +27 - (0)83 9479 042
Fax: +27 - (0)86 516 2782
Fax: +49 - (0)321 2125 2244
email: Rainer@krugs.de
Skype: RMkrug
Google: R.M.Krug@gmail.com
[-- Attachment #1.2: Type: text/html, Size: 2511 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] Enabling language mode for plantuml?
2010-12-03 12:09 ` Rainer M Krug
@ 2010-12-05 7:28 ` zwz
0 siblings, 0 replies; 9+ messages in thread
From: zwz @ 2010-12-05 7:28 UTC (permalink / raw)
To: emacs-orgmode
No, but I am considering to make a repository on github for all my
emacs-stuff. I will inform you when it is done :)
Rainer M Krug <r.m.krug@gmail.com> writes:
> Hi zwz
>
> That looks great. Do you have a repository, where I could check for
> updates?
>
> Rainer
>
> On Fri, Dec 3, 2010 at 12:31 PM, zwz <zhangweize@gmail.com> wrote:
>
>> Rainer M Krug <r.m.krug@gmail.com> writes:
>>
>> > Hi
>> >
>> > I would like to be able to edit code blocks of plantuml via C-', but
> I
>> > get the message
>> > No such language mode: plantuml-mode
>> >
>> > Is there an easy way of defining this new language mode, so that I
> can
>> > edit it via C-'?
>> > I don't need syntax highlighting at the moment, although ' as the
>> > comment character would be nice.
>> >
>> > Thanks,
>> >
>> > Rainer
>> Hi, Rainer
>>
>> I wrote a plantuml-mode, which is now not perfect but usable.
>> It is available on:
>> http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/
>>
>> Just copy the code and save it as "plantuml-mode.el" in a path where
>> emacs finds its libraries.
>>
>> Best regards,
>> zwz
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: [babel] Enabling language mode for plantuml?
2010-12-03 11:31 ` zwz
2010-12-03 12:09 ` Rainer M Krug
@ 2010-12-03 15:08 ` Rainer M Krug
2010-12-05 7:20 ` zwz
2010-12-05 14:47 ` Eric Schulte
1 sibling, 2 replies; 9+ messages in thread
From: Rainer M Krug @ 2010-12-03 15:08 UTC (permalink / raw)
To: zwz; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/03/2010 12:31 PM, zwz wrote:
> Rainer M Krug <r.m.krug@gmail.com> writes:
>
>> Hi
>>
>> I would like to be able to edit code blocks of plantuml via C-', but I
>> get the message
>> No such language mode: plantuml-mode
>>
>> Is there an easy way of defining this new language mode, so that I can
>> edit it via C-'?
>> I don't need syntax highlighting at the moment, although ' as the
>> comment character would be nice.
>>
>> Thanks,
>>
>> Rainer
> Hi, Rainer
>
> I wrote a plantuml-mode, which is now not perfect but usable.
> It is available on:
> http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/
>
> Just copy the code and save it as "plantuml-mode.el" in a path where
> emacs finds its libraries.
Just a quick question: whenever I add the line
#+begin_src emacs-lisp
(load-file "~/.emacs.d/site-lisp/plantuml-mode.el")
#+end_src
to load the plantuml-mode into my emacs.org file, the message window
opens when starting emacs --- when I comment it out, it doesn't.
Am I doing something wrong here?
Rainer
>
> Best regards,
> zwz
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkz5CAEACgkQoYgNqgF2egqiWQCfYLNcIyxacLrf4JROLtTqE811
TOwAniWnZ/HIjswppuiKATa/4/ngzbRY
=P0Qv
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] Enabling language mode for plantuml?
2010-12-03 15:08 ` Rainer M Krug
@ 2010-12-05 7:20 ` zwz
2010-12-05 14:47 ` Eric Schulte
1 sibling, 0 replies; 9+ messages in thread
From: zwz @ 2010-12-05 7:20 UTC (permalink / raw)
To: emacs-orgmode
Rainer M Krug <r.m.krug@gmail.com> writes:
> On 12/03/2010 12:31 PM, zwz wrote:
>> Rainer M Krug <r.m.krug@gmail.com> writes:
>>
>>> Hi
>>>
>>> I would like to be able to edit code blocks of plantuml via C-', but
> I
>>> get the message
>>> No such language mode: plantuml-mode
>>>
>>> Is there an easy way of defining this new language mode, so that I
> can
>>> edit it via C-'?
>>> I don't need syntax highlighting at the moment, although ' as the
>>> comment character would be nice.
>>>
>>> Thanks,
>>>
>>> Rainer
>> Hi, Rainer
>>
>> I wrote a plantuml-mode, which is now not perfect but usable.
>> It is available on:
>> http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/
>>
>> Just copy the code and save it as "plantuml-mode.el" in a path where
>> emacs finds its libraries.
>
> Just a quick question: whenever I add the line
>
> #+begin_src emacs-lisp
> (load-file "~/.emacs.d/site-lisp/plantuml-mode.el")
> #+end_src
>
> to load the plantuml-mode into my emacs.org file, the message window
> opens when starting emacs --- when I comment it out, it doesn't.
>
> Am I doing something wrong here?
>
> Rainer
>
try (require 'plantuml-mode)
btw, you should have the latest plantuml.jar
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: [babel] Enabling language mode for plantuml?
2010-12-03 15:08 ` Rainer M Krug
2010-12-05 7:20 ` zwz
@ 2010-12-05 14:47 ` Eric Schulte
1 sibling, 0 replies; 9+ messages in thread
From: Eric Schulte @ 2010-12-05 14:47 UTC (permalink / raw)
To: Rainer M Krug; +Cc: emacs-orgmode, zwz
Hi Rainer,
The preferred method of adding support for a language is shown here
http://orgmode.org/manual/Languages.html
-- Eric
Rainer M Krug <r.m.krug@gmail.com> writes:
> On 12/03/2010 12:31 PM, zwz wrote:
>> Rainer M Krug <r.m.krug@gmail.com> writes:
>>
>>> Hi
>>>
>>> I would like to be able to edit code blocks of plantuml via C-', but I
>>> get the message
>>> No such language mode: plantuml-mode
>>>
>>> Is there an easy way of defining this new language mode, so that I can
>>> edit it via C-'?
>>> I don't need syntax highlighting at the moment, although ' as the
>>> comment character would be nice.
>>>
>>> Thanks,
>>>
>>> Rainer
>> Hi, Rainer
>>
>> I wrote a plantuml-mode, which is now not perfect but usable.
>> It is available on:
>> http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/
>>
>> Just copy the code and save it as "plantuml-mode.el" in a path where
>> emacs finds its libraries.
>
> Just a quick question: whenever I add the line
>
> #+begin_src emacs-lisp
> (load-file "~/.emacs.d/site-lisp/plantuml-mode.el")
> #+end_src
>
> to load the plantuml-mode into my emacs.org file, the message window
> opens when starting emacs --- when I comment it out, it doesn't.
>
> Am I doing something wrong here?
>
> Rainer
>
>>
>> Best regards,
>> zwz
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-12-05 14:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 10:10 [babel] Enabling language mode for plantuml? Rainer M Krug
2010-12-02 19:42 ` Eric Schulte
2010-12-03 9:13 ` Rainer M Krug
2010-12-03 11:31 ` zwz
2010-12-03 12:09 ` Rainer M Krug
2010-12-05 7:28 ` zwz
2010-12-03 15:08 ` Rainer M Krug
2010-12-05 7:20 ` zwz
2010-12-05 14:47 ` Eric Schulte
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).