From 11640bc3bf0314bb5ee5484533b00178857f6f0f Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Sat, 26 May 2018 10:01:15 +0200 Subject: [PATCH] changed some shell src-blocks to example blocks --- config.org | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/config.org b/config.org index 8e9d330..2bd4724 100644 --- a/config.org +++ b/config.org @@ -880,9 +880,9 @@ END_SRC * Pandoc Convert between formats, like from org to html. Pandoc needs to be installed on the system -#+BEGIN_SRC shell +#+BEGIN_EXAMPLE sudo apt install pandoc -#+END_SRC +#+END_EXAMPLE Pandoc-mode is a minor mode to interact with pandoc #+BEGIN_SRC emacs-lisp @@ -922,15 +922,17 @@ sudo apt install pandoc Since there is no debian package, it is an option to install it via pip. I picked /opt for the installation path -#+BEGIN_SRC shell - sudo su - cd /opt - python3 -m venv beancount - source ./beancount/bin/activate - pip3 install wheel - pip3 install beancount - deactivate -#+END_SRC +#+BEGIN_EXAMPLE +sudo su +cd /opt +python3 -m venv beancount +source ./beancount/bin/activate +pip3 install wheel +pip3 install beancount +sleep 100 +echo "shell running!" +deactivate +#+END_EXAMPLE When using beancount, it will automatically pick the created virtual environment. @@ -957,21 +959,20 @@ sudo apt install pandoc #+END_SRC Installing fava for reports is strongly recommended. - -#+BEGIN_SRC shell - sudo su + +#+BEGIN_EXAMPLE cd /opt python3 -m venv vava source ./vava/bin/activate pip3 install wheel pip3 install fava deactivate -#+END_SRC +#+END_EXAMPLE Start fava with -#+BEGIN_SRC shell +#+BEGIN_EXAMPLE fava my_file.beancount -#+END_SRC +#+END_EXAMPLE It is accessable on this URL: [[http://127.0.0.1:5000][Fava]] Beancount-mode can start fava and open the URL right away. @@ -1623,9 +1624,9 @@ END_SRC Major mode to edit markdown files. For previews it needs markdown installed on the system. For debian: -#+BEGIN_SRC shell +#+BEGIN_EXAMPLE sudo apt install markdown -#+END_SRC +#+END_EXAMPLE #+BEGIN_SRC emacs-lisp (use-package markdown-mode