unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43955: two friendlier org-speed default commands
@ 2020-10-12 13:40 Boruch Baum
  0 siblings, 0 replies; only message in thread
From: Boruch Baum @ 2020-10-12 13:40 UTC (permalink / raw)
  To: 43955

When POINT is on the first column of an org-heading, org-mode makes
available a set of 'speed-commands'. However, some of those commands
have exit/undo methods that are unintuitive. The following code offers
examples of how to improve two of those situations. If you want me to
re-submit the code as a patch with associated NEWS entries, let me know,
along with any changes you need.

Case #1: S - org-narrow-to-subtree

   #+BEGIN_SRC emacs-lisp
   (push '("s" . org-speed-narrow-widen-subtree) org-speed-commands-default)
   (defun org-speed-narrow-widen-subtree ()
     (if (/= (point-min) (point))
       (call-interactively 'org-narrow-to-subtree)
      (widen)
      (message "Pro tip: Use M-x widen, %s"
               (key-description (where-is-internal 'widen nil t)))))
   #+END_SRC

Case #2: = org-columns

   #+BEGIN_SRC emacs-lisp
   (push '("=" . org-speed-columns) org-speed-commands-default)
   (defun org-speed-columns ()
     (if org-columns-overlays
       (org-columns-quit)
      (org-columns)))
   #+END_SRC

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-12 13:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 13:40 bug#43955: two friendlier org-speed default commands Boruch Baum

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).