This is an EditorConfig plugin for Geany.
-
Install the EditorConfig C Core. For example, if you are using Debian/Ubuntu, you can install it by running the following command:
apt-get install libeditorconfig-devYou also need to install geany and GTK development files (GTK2 or GTK3 depending on your system). For example, this can be done by executing the following command if you are using Debian/Ubuntu:
apt-get install libgtk2.0-dev libgtk-3-dev intltool geany -
Download EditorConfig plugin for Geany source tree, and you will find a
Makefilein the root. Executemaketo compile this plugin. Note that if the prefix of EditorConfig on your system is not/usr/local, you need to specify theEDITORCONFIG_PREFIXwhen executing make. For example, your EditorConfig prefix is/usr, then you should execute:make EDITORCONFIG_PREFIX=/usrIf you get error messages about missing include files, you'll need to preface the
makecommand above with the PKG_CONFIG_PATH variable and set it to the path togeany.pc. For example, if it's located in $HOME/.local/lib/pkgconfig:PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig make EDITORCONFIG_PREFIX=/usr -
Once the compilation succeeds, there will be an
editorconfig-geany.soin the root of the source tree. Copy this file to${geany_prefix}/lib/geany. But sometimes the path may be a little bit tricky on some systems. For these cases, the path can usually be obtained byecho $(pkg-config --variable=libdir geany)/geanyifpkg-configis present in your system. -
Run Geany, click on the
Toolsmenu, and choose thePlugin Managermenu item. In the Plugin Manager Dialog, check the plugin namedEditorConfig. Click on theOKbutton. Now you are ready to use this plugin.
-
Requirements for building the package are a GTK3 Version of Geany >= 1.32. This should work on all Debian like operating systems that meet the requirements in the control file. Further you require
build-essentialandfakerootorpbuilderdepending on how to build the package. -
Build with dpkg-buildpackage: Run
dpkg-buildpackage -rfakeroot -uc -usto build inside sources. Alternatively build with pbuilder: Rundpkg-source -b DIRECTORYNAMEon the directory where the source tree root resides. This builds the source package, especially the dsc file. Runsudo pbuilder --build editorconfig-geany_1.dscto build. The resulting package lies in /var/cache/pbuilder/result . -
Install resulting debian package(s) with
dpkgorgdebi.
There is no prebuilt binary package currently.
The EditorConfig Geany plugin supports the following EditorConfig properties:
- indent_style
- indent_size
- tab_width
- end_of_line
- insert_final_newline (
insert_final_newline = falseis effective only if "Ensure new line at file end" is turned off in Geany preferences) - root (only used by EditorConfig core)