Adding Imenu Support

Subheader

Seems to be a couple ways of doing this:

  1. Configuring a imenu-generic-expression regex's.

  2. Redifining imenu-create-index ala python.el.


In [1]:
def func():
    pass


class my_class(object):
    def __init__(self):
        pass

    def funcme(arg1):
        pass

Another Header


In [2]:
1/0


---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-2-05c9758a9c21> in <module>()
----> 1 1/0

ZeroDivisionError: division by zero

In [4]:
import inspect

In [4]:


In [5]:
1+1


Out[5]:
2

In [6]:
inspect


Out[6]:
<module 'inspect' from 'C:\\Anaconda\\envs\\py34\\lib\\inspect.py'>

In [ ]: