unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jonas Damm <emails@jonas-damm.de>
To: Jean Louis <bugs@gnu.support>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Org-mode: toggle between source block and its results
Date: Thu, 09 Feb 2023 08:10:39 +0100	[thread overview]
Message-ID: <87wn4r1fau.fsf@jonas-damm.de> (raw)
In-Reply-To: <Y+QDn6CatCI89/gZ@protected.localdomain>

Maybe you need this, for org-babel to recognize the source block:


(with-eval-after-load 'org
    (org-babel-do-load-languages
        'org-babel-load-languages
        '((emacs-lisp . t)
          (lilypond . t)
          (python . t)))

    (push '("conf-unix" . conf-unix) org-src-lang-modes))


I also have this in my config:


(setq load-path (append (list (expand-file-name "/usr/share/emacs/site-lisp")) load-path))

  (autoload 'LilyPond-mode "lilypond-mode")
  (setq auto-mode-alist
        (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist))

  (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))


Jean Louis <bugs@gnu.support> writes:

> * Jonas Damm <emails@jonas-damm.de> [2023-02-08 11:21]:
>> > * Jonas Damm <emails@jonas-damm.de> [2023-02-06 21:03]:
>> >> Hi, I would like to make a presentation about music in org-present.
>> >> I want to show musical lilypond snippets, but I don't want the source
>> >> block itself to show. Is it possible to toggle visablitly of the
>> >> source block and its results?
>
> Help me, and tell me, how to export lilypond? I got the software, but
> the Org block is not exporting it, do you use some package for it?
>
> Then I can test it.




      reply	other threads:[~2023-02-09  7:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-06 17:55 Org-mode: toggle between source block and its results Jonas Damm
2023-02-06 18:25 ` H. Dieter Wilhelm
2023-02-07  8:51   ` Jonas Damm
2023-02-07 17:27     ` H. Dieter Wilhelm
2023-02-07 18:39       ` Bruno Barbier
2023-02-08  8:08         ` Jonas Damm
2023-02-08 20:25           ` Jean Louis
2023-02-09  7:02             ` Jonas Damm
2023-02-07 10:05 ` Jean Louis
2023-02-08  5:22   ` tomas
2023-02-08  8:19   ` Jonas Damm
2023-02-08 20:18     ` Jean Louis
2023-02-09  7:10       ` Jonas Damm [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn4r1fau.fsf@jonas-damm.de \
    --to=emails@jonas-damm.de \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).