GithubHelp home page GithubHelp logo

dewdrops / emacs-import-popwin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emacsorphanage/import-popwin

0.0 2.0 0.0 224 KB

Pop up buffer near by import statements with popwin

Emacs Lisp 100.00%

emacs-import-popwin's Introduction

import-popwin.el

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

emacs-import-popwin's People

Contributors

dewdrops avatar syohex avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.