emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Screencast of lispy.el with org-mode code base
@ 2014-02-17 14:11 Oleh
  2014-03-04  9:32 ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Oleh @ 2014-02-17 14:11 UTC (permalink / raw)
  To: org mode

Hi all,

I'm developing an Emacs minor mode called lispy (available at
https://github.com/abo-abo/lispy and as "lispy" in MELPA).

It combines vi-style Paredit and IDE-like features for Elisp,
Clojure, Scheme and Common Lisp (leveraging CEDET, CIDER, Geiser, and SLIME
respectively).

To show-off the package a bit, here's a screencast where I navigate
org-mode code: https://vimeo.com/86894158 .

Some cool features (I'll list a shortcut and what it does, starting
position should be anywhere in org source tree with point at "(" or
behind ")" or at "^;"):

1. With "g" I know that there are currently 7276 tags in org-mode's code base.
2. With "G" I know that there are 1761 tags in org.el.
3. With "g" "obs" I know that there are 24 tags declared obsolete in
org-mode's code base.
4. With "g" "cloj" I know that there are 18 tags related to Clojure,
all of them in ob-clojure.el.
5. With "g" "heading ext" here are the candidates that match:

    declare-function outline-next-heading
   org-list.el
    declare-function outline-next-heading
   org-footnote.el
    org-extract-archive-heading
   org-archive.el
    org-mouse-next-heading
   org-mouse.el

6. With "g" "defk" I know that org-defkey is called 306 times.
7. With "g" "shifttab" here's the info I get (last one is the definition):

    org-defkey org-mode-map [(shift tab)]    'org-shifttab                org.el
    define-key org-mode-map [backtab] 'org-shifttab                       org.el
    org-shifttab                                                          org.el

8. And of course RET will jump to any candidate selected, e.g. "g"
"python exe" "RET"
will jump to file ob-python.el to the definition of `org-babel-execute:python'.

I'm using CEDET to parse the files, so the first time you call `lispy-goto`
there will be a few second parse. The parse happens only once, it saves tags
to the database and no parsing is done further unless some files have changed.

I also demonstrate near the end of the video how to customize the info you get
for the top-level tags. So initially `eval-after-load` tags were plain
and didn't show
what they were doing. But then I added `(eval-after-load . 1)` to
`lispy-tag-arity`
and after a call to `lispy-build-semanticdb` the `eval-after-load` tags include
one more sexp, which is the file argument of the form.

I hope you like the package and feedback is welcome.

regards,
Oleh

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-15 10:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 14:11 Screencast of lispy.el with org-mode code base Oleh
2014-03-04  9:32 ` Bastien
2014-03-04 11:46   ` Oleh
2014-03-04 14:02     ` Sebastien Vauban
2014-03-04 14:20       ` Oleh
2014-03-14 11:16     ` Bastien
2014-03-14 14:38       ` Oleh
2014-03-14 14:56         ` Bastien
2014-03-15 10:17         ` Marcin Borkowski

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).