From: Sebastian Rose <sebastian_rose@gmx.de>
To: Manish <mailtomanish.sharma@gmail.com>
Cc: emacs-orgmode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: bug in LaTeX exporter (org-mode 6.07)
Date: Tue, 21 Oct 2008 20:55:08 +0200 [thread overview]
Message-ID: <48FE258C.7050409@gmx.de> (raw)
In-Reply-To: <e7cdbe30810211013k63578704q15c4ed8154d88c15@mail.gmail.com>
Manish wrote:
> On Tue, Oct 21, 2008 at 8:07 PM, Peter wrote:
> [snip]
> >
> > Unrelated: what trick/mode/command do you guys use to make those nice
> > snippets like:
> > ,---[xxx]
> > | blah
> > | blah
> > `---
>
> Boxquote.
> http://www.emacswiki.org/cgi-bin/wiki/BoxQuote
> http://www.davep.org/emacs/#boxquote.el
>
> -- Manish
How about a yasnippet box:
,------------------------.
! A box from a yasnippet |
`------------------------´
The snippet file:
>>> --->8-------------------------->8-------------------------->8---
#name : ! box |
# --
,${1:$(make-string (string-width text) ?\-)}--.
! ${1:SubTitle} |
\`${1:$(make-string (string-width text) ?\-)}--´
$0
<<< ---8<--------------------------8<--------------------------8<---
Setup yasnippets! It's the best package I found since Org-mode.
After loading the snippet above, you just type
box
and hit TAB. The box grows as you type. After TAB point is automatically
at ${1:SubTitle} (where SubTitle is the default text, that is
overwritten if you decide to type somthing. There could be $2, $3 etc.
to TAB to more than one place in the snippet (S-TAB backwards).
$0 is where point should go after the last TAB, that exits the snippet.
Homepage: http://code.google.com/p/yasnippet/
Demo: http://www.youtube.com/watch?v=vOj7btx3ATg
You can even easily define, which editing mode inherits from which,
simply by changing the directory structure.
WOWWWW. Fast, simple, productive!!!
next prev parent reply other threads:[~2008-10-21 18:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 14:37 bug in LaTeX exporter (org-mode 6.07) peter.frings
2008-10-21 17:13 ` Manish
2008-10-21 18:55 ` Sebastian Rose [this message]
2008-10-21 19:11 ` Offtopic: Did you smile today? Sebastian Rose
2008-10-21 17:48 ` bug in LaTeX exporter (org-mode 6.07) Manish
2008-12-16 7:40 ` Carsten Dominik
2008-12-16 7:40 ` Carsten Dominik
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48FE258C.7050409@gmx.de \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=mailtomanish.sharma@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).