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

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

Re: Org-mode: toggle between source block and its results


From: Jonas Damm
Subject: Re: Org-mode: toggle between source block and its results
Date: Thu, 09 Feb 2023 08:10:39 +0100
User-agent: mu4e 1.8.10; emacs 28.2.50

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 via email to

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