Skip to content

Pop up buffer near by import statements with popwin

Notifications You must be signed in to change notification settings

emacsorphanage/import-popwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import-popwin.el melpa badge melpa stable badge

Introduction

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.

Screenshot

import-popwin with ruby-mode

import-popwin-ruby

import-popwin with cperl-mode

import-popwin-perl

Requirements

Basic Usage

import-popwin

Pop up buffer near by import statements

Default support modes

  • 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

Add own configuration

(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\\)-")

Configuration Parameters

Mandatory Parameter

:mode

Specified mode for this configuration.

:regexp

Regexp for searching import statement.

Optional Parameter

:before

Function which is called before popup buffer.

:fallback

Function which is called if to search import statement with :regexp is failed.

:after

Function which is called after popup buffer.

Hooks

import-popwin:common-before-hook

Common hooks called before popup window. This hook is run before each language :before functon

import-popwin:common-after

Common hooks called after popup window This hook is run before each language :after functon

About

Pop up buffer near by import statements with popwin

Resources

Stars

Watchers

Forks

Packages

No packages published