import-popwin.el
pops up buffer near by import statements with popwin.el.
We often fix import statements in any languages. import-popwin.el
helps you in such case.
- Emacs 23 or higher
- popwin.el 0.6 or higher
Pop up buffer near by import statements
- c-mode
- c++-mode
- java-mode
- perl-mode, cperl-mode
- ruby-mode, enh-ruby-mode
- python-mode
- emacs-lisp-mode
- js-mode, js2-mode, javascript-mode
- coffee-mode
- go-mode
- haskell-mode
(import-popwin:add :mode 'java-mode
:regexp "^import\\s-")
You can override default setting.
(import-popwin:add :mode '(perl-mode cperl-mode)
:regexp "^\\(use\\|require\\)-")
Specified mode for this configuration.
Regexp for searching import statement.
Function which is called before popup buffer.
Function which is called if to search import statement with :regexp
is failed.
Function which is called after popup buffer.
Common hooks called before popup window.
This hook is run before each language :before
functon
Common hooks called after popup window
This hook is run before each language :after
functon