[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) |
-----BEGIN PGP SIGNED MESSAGE-----
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
#+END_SRC
#+RESULTS:
:RESULTS:
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
:END:
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.
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlomqJoACgkQBcgs9XrR2kbjyQCfbsbCw/I08EP/mlNWgrWdaOd9
FF0Anima6AKFVowX6UqV5dGMA3gqK2nz
=RV52
-----END PGP SIGNATURE-----
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, (continued)
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Eric S Fraga, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, tomas, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Eric S Fraga, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, tomas, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included,
tomas <=
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/05
- Message not available
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/05
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/06
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, tomas, 2017/12/06
- Message not available
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/06
- Message not available
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/06
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Rusi, 2017/12/06
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Emanuel Berg, 2017/12/06
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Eric S Fraga, 2017/12/06
- Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included, Yuri Khan, 2017/12/05