[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] navi equivalent to 'g' speed command?

From: Thorsten Jolitz
Subject: Re: [O] navi equivalent to 'g' speed command?
Date: Wed, 03 Sep 2014 10:28:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Alan Schmitt <address@hidden> writes:

> On 2014-09-03 09:18, Thorsten Jolitz <address@hidden> writes:
>> Alan Schmitt <address@hidden> writes:
>> Hello,
>>> I very often use the org speed command 'g' to navigate to a headline
>>> (it opens a completion buffer that I can use to quickly fuzzy match the
>>> target). Is there an equivalent navi workflow for non-org buffer in
>>> outshine mode?
>> Hmm... which command do you mean? I get
>> ,----
>> | User-defined Speed commands
>> | ===========================
>> | 
>> | Built-in Speed commands
>> | =======================
>> | 
>> | Outline Navigation
>> | ------------------
>> | [...]
>> | g   (org-refile t)
>> `----
>> but thats not the one you are talking about, right?
> Yes, it's the one I mean. Don't let the "refile" fool you: the 't'
> argument means nothing is actually refiled during the jump to the
> target. I use it all the time.

ok, it seems 'outshine-refile does works, but I'm not sufficiently used
to it - it actually refiles the outshine headers I'm on, but that seems
to be a configuration thing. 

I could expand 

#+BEGIN_SRC emacs-lisp
(defun outshine-refile ()
  "Call outorg to trigger `org-refile'."
  (outshine-use-outorg 'org-refile))

to something like

#+BEGIN_SRC emacs-lisp
(defun outshine-refile (&optional arg)
  "Call outorg to trigger `org-refile'."
  (interactive "P")
  (if arg
     (outshine-use-outorg 'org-refile nil nil t)
    (outshine-use-outorg 'org-refile)))

to match you use case, but I think what you really want is

,----[ C-h f outshine-imenu RET ]
| outshine-imenu is an interactive Lisp function in `outshine.el'.
| It is bound to M-# M-p.
| (outshine-imenu &optional PREFER-IMENU-P)
| Convenience function for calling imenu/idomenu from outshine.

with idomenu installed from the package manager. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]