From: Steve Quezadas <steve@thestever.net>
To: emacs-orgmode@gnu.org
Subject: Mark-and-select an item in org-mode
Date: Thu, 14 Jun 2018 11:58:02 -0700 [thread overview]
Message-ID: <88e04d88-6d66-b917-a91b-49fb7163b7e3@thestever.net> (raw)
I'm not sure if there's something incredibly simple I'm missing here,
but is there a way to just select an org-mode item when a cursor is on
top of an org-mode item?
I checked google/org-mode documentation and I can't find anything. So
I went through the source code and noticed that procedure
"org-move-item-up" has a function, "point-at-bol", that return the
position of the line item that the cursor is standing on top of. I
would imagine it would be trivial to do a "select mark" command for
that item after that.
Two questions:
1) Is there already an org-mode function that select or delete an
org-mode line item?
2) If not, is it possible to do a "set-mark-command" on an org-mode line
item (possibly derived from the "point-at-bol" command)?
I am somewhat new to emacs-lisp, and I plan to "play around with it"
to get it to do what I want it to do, but I thought I'd through it on
the maillist to see if I am barking up the right tree. If it's not a
feature in org-mode, I'm sure I can write my own function for it and,
in the spirit of emacs, throw a patch to the project if wanted.
- Steve
next reply other threads:[~2018-06-14 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-14 18:58 Steve Quezadas [this message]
2018-06-14 19:05 ` Mark-and-select an item in org-mode Nicolas Goaziou
2018-06-14 19:22 ` Samuel Wales
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=88e04d88-6d66-b917-a91b-49fb7163b7e3@thestever.net \
--to=steve@thestever.net \
--cc=emacs-orgmode@gnu.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.