Skip to content

nudgegoonies/editorconfig-geany

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EditorConfig Plugin for Geany

This is an EditorConfig plugin for Geany.

Installation

Install From source

  1. 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
    
  2. Download EditorConfig plugin for Geany source tree, and you will find a Makefile in the root. Execute make to compile this plugin. Note that if the prefix of EditorConfig on your system is not /usr/local, you need to specify the EDITORCONFIG_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 to geany.pc. For example, if it's located in $HOME/.local/lib/pkgconfig:

    PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig make EDITORCONFIG_PREFIX=/usr
    
  3. 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 by echo $(pkg-config --variable=libdir geany)/geany if pkg-config is present in your system.

  4. Run Geany, click on the Tools menu, and choose the Plugin Manager menu item. In the Plugin Manager Dialog, check the plugin named EditorConfig. Click on the OK button. Now you are ready to use this plugin.

Build Debian/Ubuntu/etc. package from source

  1. 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 and fakeroot or pbuilder depending on how to build the package.

  2. Build with dpkg-buildpackage: Run dpkg-buildpackage -rfakeroot -uc -us to build inside sources. Alternatively build with pbuilder: Run dpkg-source -b DIRECTORYNAME on the directory where the source tree root resides. This builds the source package, especially the dsc file. Run sudo pbuilder --build editorconfig-geany_1.dsc to build. The resulting package lies in /var/cache/pbuilder/result .

  3. Install resulting debian package(s) with dpkg or gdebi.

Install From Binary

There is no prebuilt binary package currently.

Supported Properties

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)

About

EditorConfig plugin for Geany

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.5%
  • Makefile 16.5%