emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: emacs-orgmode@gnu.org, Bill White <billw@wolfram.com>
Subject: Re: speed keys for plain lists?
Date: Mon, 09 May 2016 17:27:36 +0000	[thread overview]
Message-ID: <CAFyQvY1KDRiaitxFZAppeHGkyy+gwthbeDxX69-Xpdnsvr9=nA@mail.gmail.com> (raw)
In-Reply-To: <87eg9bck3t.fsf@mbork.pl>

[-- Attachment #1: Type: text/plain, Size: 864 bytes --]

On Mon, May 9, 2016 at 11:43 AM Marcin Borkowski <mbork@mbork.pl> wrote:

> I guess that OP would like some key to do this only when in plain list.
> It's slightly less easy then, and the preferred way (advice/new
> function/maybe some hook) might depend on the particular choice of the
> keys.
>

Right, the define-key solution was under the assumption that M-{ and M-}
already do what the OP needs.

They are bound to org-backward-element and org-forward-element by default
in org-mode-map. So if M-{/M-} already does what he want, he can simply
bind the same commands to keys of his liking.

Actually org uses org-defkey instead of define-key for these bindings. But
they are not context-aware keys; they apply to org-mode-map:

http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/org.el?id=8127b3c30d8a2217468068a73f23bfa4945573dc#n19895

-- 

-- 
Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1372 bytes --]

  parent reply	other threads:[~2016-05-09 17:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09 11:30 speed keys for plain lists? Bill White
2016-05-09 14:15 ` Bill White
2016-05-09 14:57   ` Kaushal Modi
2016-05-09 15:43     ` Marcin Borkowski
2016-05-09 16:58       ` John Kitchin
2016-05-09 17:27       ` Kaushal Modi [this message]
     [not found]       ` <153f4aedb6cc4ab181e9a168513c4a49@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-05-09 18:44         ` Eric S Fraga
2016-05-09 19:59           ` Bill White
2016-05-10  8:21             ` Karl Voit
2016-05-12 17:12               ` Bill White
2016-05-16 18:17                 ` Grant Rettke
2016-05-17 11:46                   ` Karl Voit
2016-05-17 15:54                   ` Bill White
2016-05-18  7:30                     ` Karl Voit
2016-05-19  2:48                     ` Grant Rettke
     [not found] ` <ccf2f9fe1b2e4df7a1dd48a046c6a86a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-05-09 15:19   ` Eric S Fraga

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='CAFyQvY1KDRiaitxFZAppeHGkyy+gwthbeDxX69-Xpdnsvr9=nA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=billw@wolfram.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mbork@mbork.pl \
    /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).