[Top][All Lists]

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

Re: want a file format easily edited and read by emacs that allows (mult

From: tomas
Subject: Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included
Date: Tue, 5 Dec 2017 15:09:30 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hash: SHA1

On Tue, Dec 05, 2017 at 02:53:52PM +0100, Emanuel Berg wrote:
> tomás wrote:
> > And don't forget, the source code is
> > a lightweight markup more text-oriented folks
> > will be able to make sense of (as well as
> > they'd make of Markdown and others).
> > I regularly throw org snippets in my text
> > mails and no one notices :-)
> Then why do it at all?

Because it makes life easier for me. An example: if I want to
show to someone what "df -h" does on my box, I just open an org
mode buffer and do:

  This is the output of =df= on my box
  #+BEGIN_SRC sh :results raw drawer
    df -h
  Filesystem                Size  Used Avail Use% Mounted on
  udev                      7.7G     0  7.7G   0% /dev
  tmpfs                     1.6G  3.1M  1.6G   1% /run
  /dev/mapper/trotzki-root   19G  376M   17G   3% /
  /dev/mapper/trotzki-usr    73G  2.6G   67G   4% /usr
  tmpfs                     5.0M     0  5.0M   0% /run/lock
  tmpfs                     3.1G   24M  3.1G   1% /run/shm
  /dev/sda1                 939M   38M  854M   5% /boot
  /dev/mapper/trotzki-home  640G  137G  471G  23% /home
  /dev/mapper/trotzki-var   183G  408M  173G   1% /var

Note that the whole thing between :RESULTS: and :END: was inserted
by org mode, I just had to type C-c C-c in the source code snippet
(and confirm that yes, I want this shell snippet executed in my
box). No more cutting&pasting from a terminal session and things
like that (and I can just redo the whole thing once I've saved
that buffer somewhere -- that's what others are talking about
repeatable research).

As that's Emacs, I can run it remotely on another box (courtesy
of Tramp), yadda, yadda. When I do remote sysadmin on other boxes,
I often use org to document what I've done and why.

- -- tomás
Version: GnuPG v1.4.12 (GNU/Linux)


reply via email to

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