henriquelalves / gdscript-mode

An Emacs major mode for GDScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a major mode for GDScript. It's incomplete but I need this so it'll be as complete as I can make it soon.

As of right now it has basic syntax highlighting and a mostly working cycling indentation function.

Installation

(add-to-list 'load-path "~/path/to/gdscript-mode.el/")
(load "gdscript-mode.el")
(require 'gdscript-mode)

Customization

Use spaces instead of tabs. This defaults to whatever you have it set to. The editor defaults to tabs and I haven't found a way to change it so if you use spaces setting this to true might be useful.

(setq gdscript-tabs-mode t)

Set indentation width. Again I couldn't find how to change this in the default editor and I use 2 for everything.

(setq gdscript-tab-width 4)

The script is set to open with any .gdscript file within Emacs.

About

An Emacs major mode for GDScript


Languages

Language:Emacs Lisp 100.0%