mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-05 22:10:05 +03:00
93 lines
3.0 KiB
EmacsLisp
93 lines
3.0 KiB
EmacsLisp
;;; gdscript-customization.el --- Customizable variables for the GDScript language support. -*- lexical-binding: t; -*-
|
|
|
|
;; Copyright (C) 2020 GDQuest, Free Software Foundation, Inc.
|
|
|
|
;; Author: Nathan Lovato <nathan@gdquest.com>, Fabián E. Gallina <fgallina@gnu.org>
|
|
;; URL: https://github.com/GDQuest/emacs-gdscript-mode/
|
|
;; Version: 0.1.0
|
|
;; Package-Requires: ((emacs "26.0"))
|
|
;; Maintainer: nathan@gdquest.com
|
|
;; Created: Jan 2020
|
|
;; Keywords: languages
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
;; (at your option) any later version.
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;; GNU General Public License for more details.
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
;;; Code:
|
|
|
|
(defgroup gdscript nil
|
|
"GDScript language support for Emacs."
|
|
:group 'languages
|
|
:version "26"
|
|
:link '(emacs-commentary-link "gdscript"))
|
|
|
|
(defcustom gdscript-use-type-hints t
|
|
"If t, inserted snippets contain type hints"
|
|
:group 'gdscript
|
|
:type 'boolean)
|
|
|
|
;; gdscript-indent
|
|
(defcustom gdscript-use-tab-indents t "Use tabs (t) or spaces (nil)"
|
|
:type 'boolean
|
|
:group 'gdscript)
|
|
|
|
(defcustom gdscript-tab-width 4 "Indentation width"
|
|
:type 'integer
|
|
:group 'gdscript)
|
|
|
|
(defcustom gdscript-indent-offset 4 "Default indentation offset for Gdscript."
|
|
:group 'gdscript
|
|
:type 'integer
|
|
:safe 'integerp)
|
|
|
|
(defcustom gdscript-indent-guess-indent-offset
|
|
t "If t, tells GDScript mode to guess `gdscript-indent-offset' value."
|
|
:type 'boolean
|
|
:group 'gdscript
|
|
:safe 'booleanp)
|
|
|
|
(defcustom gdscript-indent-guess-indent-offset-verbose
|
|
t "If t, emit a warning when guessing indentation fails."
|
|
:version "25.1"
|
|
:type 'boolean
|
|
:group 'gdscript
|
|
:safe 'booleanp)
|
|
|
|
(defcustom gdscript-indent-trigger-commands '(indent-for-tab-command yas-expand yas/expand)
|
|
"Commands that might trigger a `gdscript-indent-line' call."
|
|
:type '(repeat symbol):group'gdscript)
|
|
|
|
;; gdscript-fill-paragraph.el
|
|
(defcustom gdscript-fill-comment-function 'gdscript-fill-comment
|
|
"Function to fill comments.
|
|
This is the function used by `gdscript-fill-paragraph' to
|
|
fill comments."
|
|
:type 'symbol
|
|
:group 'gdscript)
|
|
|
|
(defcustom gdscript-fill-string-function 'gdscript-fill-string
|
|
"Function to fill strings.
|
|
This is the function used by `gdscript-fill-paragraph' to
|
|
fill strings."
|
|
:type 'symbol
|
|
:group 'gdscript)
|
|
|
|
(defcustom gdscript-fill-paren-function 'gdscript-fill-paren
|
|
"Function to fill parens.
|
|
This is the function used by `gdscript-fill-paragraph' to
|
|
fill parens."
|
|
:type 'symbol
|
|
:group 'gdscript)
|
|
|
|
(provide 'gdscript-customization)
|