mirror of
https://codeberg.org/scip/config-general-mode.git
synced 2025-12-18 04:50:57 +01:00
re-generated
This commit is contained in:
51
README.md
51
README.md
@@ -1,28 +1,27 @@
|
|||||||
## config-general-mode
|
# config-general-mode - Emacs major editing mode for Config::General config files.
|
||||||
|
|
||||||
Emacs major editing mode for Config::General config files.
|
## Screenshot
|
||||||
|
|
||||||
### Screenshot
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Introduction
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
[Config::General](http://search.cpan.org/dist/Config-General/) is a
|
[Config::General](http://search.cpan.org/dist/Config-General/) is a
|
||||||
Perl module for parsing config files with some enhanced
|
Perl module for parsing config files with some enhanced
|
||||||
features. [config-general-mode](https://github.com/TLINDEN/config-general-mode)
|
features. `config-general-mode` makes it easier to edit such config
|
||||||
makes it easier to edit such config files with emacs.
|
files with Emacs.
|
||||||
|
|
||||||
It is based on `conf-mode` with the following features:
|
It is based on `conf-mode` with the following features:
|
||||||
|
|
||||||
- good syntax highlighting for config files
|
- good syntax highlighting for config files
|
||||||
- completion support with <kbd>tab</kbd> (using `dabbrev`)
|
- completion support with <kbd>TAB</kbd> (using `dabbrev`)
|
||||||
- imenu support for `<blocks>`
|
- imenu support for <blocks>
|
||||||
- electric paring mode (for quotes, parens, etc) enabled
|
- electric paring mode (for quotes, parens, etc) enabled
|
||||||
- automatic indenting
|
- automatic indenting
|
||||||
- jump to include file with <kbd>return</kbd>
|
- jump to include file with <kbd>C-return</kbd>
|
||||||
|
|
||||||
### Installation
|
## Installation
|
||||||
|
|
||||||
To use, save config-general-mode.el to a directory in your load-path.
|
To use, save config-general-mode.el to a directory in your load-path.
|
||||||
|
|
||||||
@@ -40,20 +39,20 @@ the first line of a config file:
|
|||||||
|
|
||||||
# -*-config-general-*-
|
# -*-config-general-*-
|
||||||
|
|
||||||
### Usage
|
## Usage
|
||||||
|
|
||||||
Edit your config file as usual. Use <kbd>tab</kbd> for completion of
|
Edit your config file as usual. Use <kbd>TAB</kbd> for completion of
|
||||||
values and variables. Use <kbd>C-c C-t</kbd> to toggle flags (like
|
values and variables. Use <kbd>C-c C-t</kbd> to toggle flags (like true to
|
||||||
true to false). Use <kbd>C-c C-=</kbd> on a region to automatically
|
false). Use <kbd>C-c C-=</kbd> on a region to automatically align on the `=`
|
||||||
align on the `=` character. Use <kbd>C-c C-/</kbd> to breakup a region
|
character. Use <kbd>C-c C-/</kbd> to breakup a region with long lines into
|
||||||
with long lines into shorter ones using backslash notation. Use
|
shorter ones using backslash notation. Use <kbd>C-return</kbd> to visit
|
||||||
<kbd>C-return</kbd> to visit an included file or (when not on a link)
|
an included file or (when not on a link) insert a new line below
|
||||||
insert a new line below the current one, indent and move point there.
|
the current one, indent and move point there. Use <kbd>C-k</kbd> to delete
|
||||||
Use <kbd>C-k</kbd> to delete lines, including continuation lines or
|
lines, including continuation lines or whole blocks. Use <kbd>C-c C-j</kbd>
|
||||||
whole blocks. Use <kbd>C-c C-j</kbd> to jump to a block definition
|
to jump to a block definition (same as using `imenu` with the
|
||||||
(same as using `imenu' with the mouse).
|
mouse).
|
||||||
|
|
||||||
### Customize
|
## Customize
|
||||||
|
|
||||||
You can customize the mode with:
|
You can customize the mode with:
|
||||||
|
|
||||||
@@ -68,10 +67,10 @@ For example:
|
|||||||
|
|
||||||
(add-hook 'config-general-mode-hook 'electric-indent-mode)
|
(add-hook 'config-general-mode-hook 'electric-indent-mode)
|
||||||
|
|
||||||
### Meta
|
## Meta
|
||||||
|
|
||||||
|
|
||||||
Copyright (C) 2017, T.v.Dein <tlinden@cpan.org>
|
Copyright (C) 2017, T.v.Dein <tlinden AT cpan DOT org>
|
||||||
|
|
||||||
This file is NOT part of Emacs.
|
This file is NOT part of Emacs.
|
||||||
|
|
||||||
@@ -91,7 +90,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|||||||
USA
|
USA
|
||||||
|
|
||||||
- Version: 0.01
|
- Version: 0.01
|
||||||
- Author: T.v.Dein <tlinden@cpan.org>
|
- Author: T.v.Dein <tlinden AT cpan DOT org>
|
||||||
- Keywords: config file editing
|
- Keywords: config file editing
|
||||||
- URL: https://github.com/tlinden/config-general-mode
|
- URL: https://github.com/tlinden/config-general-mode
|
||||||
- License: GNU General Public License >= 2
|
- License: GNU General Public License >= 2
|
||||||
|
|||||||
Reference in New Issue
Block a user