From: "Fabrice Niessen" <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
To: Fabrice Niessen
<public-fni-news-TA4HMoP+1wHrZ44/DZwexQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org
Subject: Re: AUCTeX key bindings within Org documents
Date: Mon, 21 Oct 2013 22:06:59 +0200 [thread overview]
Message-ID: <86vc0qfkws.fsf@somewhere.org> (raw)
In-Reply-To: <8661tlgy2w.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org> (Fabrice Niessen's message of "Sat, 28 Sep 2013 10:16:55 +0200")
Hello,
"Fabrice Niessen" wrote:
> Due to a friend's request, I've tried to offer AUCTeX key bindings
> within Org documents via a minor mode, called "org-auctex-keys".
>
> If you're interested, check it out at
> https://github.com/fniessen/org-auctex-key-bindings.
>
> Note that I'm willing to add extra AUCTeX keys -- but I don't use
> AUCTeX enough to know what's important to transfer to Org.
I've updated `org-auctex-keys' in the following way:
- `C-c C-c' runs a menu which looks a lot like AUCTeX's menu: pressing once the
key binding calls the export process (that is, generates a PDF file);
pressing a second time will display it (if available).
Extra optimization: if the PDF files is newer than the Org file, then
pressing `C-c C-c' will display it (avoiding to redo it).
- As there are a lot of conflicts between Org and AUCTeX keys, you now can call
the standard Org command by prefixing the key binding with a `C-u' argument.
Note that the first `C-u' is not passed onto the standard command.
For example,
+ C-c C-c calls my command `org-auckeys-export-dispatch'
+ C-u C-c C-c calls the original `org-ctrl-c-ctrl-c' with no `C-u' arg (= 1)
+ C-u C-u C-c C-c calls the original `org-ctrl-c-ctrl-c' with 1 `C-u' arg (= 4)
+ C-u C-u C-u C-c C-c calls the original `org-ctrl-c-ctrl-c' with 2 `C-u' arg (= 16)
+ etc. (provided it makes sense)
- I've added a key binding to turn off/on "Org AUCKeys": `C-+'.
So, to call a standard Org command, you can as well disable
`org-auctex-keys', pressing the key binding you know in standard Org, and
re-enable `org-auctex-keys', that is:
C-+ C-c C-c C-+
to call `org-ctrl-c-ctrl-c'.
Fabrice Niessen
--
Fabrice Niessen
Leuven, Belgium
next prev parent reply other threads:[~2013-10-21 20:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 11:21 AUCTeX key bindings within Org documents Fabrice Niessen
2013-09-27 12:08 ` Nicolas Richard
2013-09-28 8:15 ` Fabrice Niessen
2013-09-28 9:56 ` Suvayu Ali
2013-09-28 10:04 ` Marcin Borkowski
2013-09-28 10:30 ` Achim Gratz
2013-09-28 10:36 ` Marcin Borkowski
[not found] ` <86a9ixgy5b.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
2013-09-29 18:47 ` Fabrice Niessen
2013-10-01 15:08 ` Suvayu Ali
2013-10-01 20:38 ` Marcin Borkowski
2013-10-02 11:36 ` Nicolas Richard
2013-10-02 20:41 ` Marcin Borkowski
2013-10-05 6:10 ` Joseph Vidal-Rosset
2013-10-05 7:58 ` Fabrice Niessen
2013-10-05 13:51 ` Joseph Vidal-Rosset
2013-10-05 20:52 ` Nicolas Richard
2013-10-05 21:22 ` Joseph Vidal-Rosset
2013-09-27 12:24 ` Marcin Borkowski
2013-09-28 8:16 ` Fabrice Niessen
[not found] ` <8661tlgy2w.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
2013-10-21 20:06 ` Fabrice Niessen [this message]
2013-10-01 20:26 ` AW
2013-10-02 11:37 ` Nicolas Richard
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vc0qfkws.fsf@somewhere.org \
--to=fni-news-ta4hmop+1whrz44/dzwexq@public.gmane.org \
--cc=public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org \
--cc=public-fni-news-TA4HMoP+1wHrZ44/DZwexQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.