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-dev
You 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
Makefile
in the root. Executemake
to compile this plugin. Note that if the prefix of EditorConfig on your system is not/usr/local
, you need to specify theEDITORCONFIG_PREFIX
when executing make. For example, your EditorConfig prefix is/usr
, then you should execute:make EDITORCONFIG_PREFIX=/usr
If you get error messages about missing include files, you'll need to preface the
make
command 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.so
in 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)/geany
ifpkg-config
is present in your system. -
Run Geany, click on the
Tools
menu, and choose thePlugin Manager
menu item. In the Plugin Manager Dialog, check the plugin namedEditorConfig
. Click on theOK
button. 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-essential
andfakeroot
orpbuilder
depending on how to build the package. -
Build with dpkg-buildpackage: Run
dpkg-buildpackage -rfakeroot -uc -us
to build inside sources. Alternatively build with pbuilder: Rundpkg-source -b DIRECTORYNAME
on the directory where the source tree root resides. This builds the source package, especially the dsc file. Runsudo pbuilder --build editorconfig-geany_1.dsc
to build. The resulting package lies in /var/cache/pbuilder/result . -
Install resulting debian package(s) with
dpkg
orgdebi
.
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 = false
is effective only if "Ensure new line at file end" is turned off in Geany preferences) - root (only used by EditorConfig core)