Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zk-phi/include-anywhere
Include from anywhere
https://github.com/zk-phi/include-anywhere
emacs
Last synced: 3 days ago
JSON representation
Include from anywhere
- Host: GitHub
- URL: https://github.com/zk-phi/include-anywhere
- Owner: zk-phi
- Created: 2017-01-28T07:28:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T04:20:12.000Z (over 3 years ago)
- Last Synced: 2024-08-05T06:06:02.534Z (3 months ago)
- Topics: emacs
- Language: Emacs Lisp
- Homepage:
- Size: 288 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.org
Awesome Lists containing this project
README
* include-anywhere.el
Insert import statements from anywhere
どこからでもいい感じに import 文を挿入
** Description
This package provides `include-anywhere` command, which just inserts
an import statement into the "right" position, regardless of where you
are now."Right" position is by default determined by `string<` predicate, and
import statements will be ordered lexicographically (anyway you can
customize this behavior).** Screencast
[[screencast.gif]]
** Usage
Load this package in your init.el
: (require 'include-anywhere)
and call `M-x include-anywhere` in a buffer with supported
major-modes listed below :- c-mode, java-mode
- lisp-interaction-mode, emacs-lisp-mode
- perl-mode, cperl-modeTo add support for another major-mode, put something like
: (push '(c-mode . ("#include <" . ">")) include-anywhere-alist)
into your init.el.