From 57baa4ba4a13c83f6132011ee14d149083c7cea3 Mon Sep 17 00:00:00 2001 From: Ryota Kayanuma Date: Wed, 21 Aug 2019 18:05:30 +0900 Subject: [PATCH] Add kivy layer Removed the kivy package from the major-modes layer. --- CHANGELOG.develop | 4 +++- layers/+lang/kivy/README.org | 18 ++++++++++++++++++ layers/+lang/kivy/packages.el | 27 +++++++++++++++++++++++++++ layers/+lang/major-modes/README.org | 1 - layers/+lang/major-modes/packages.el | 3 --- 5 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 layers/+lang/kivy/README.org create mode 100644 layers/+lang/kivy/packages.el diff --git a/CHANGELOG.develop b/CHANGELOG.develop index c32823536..10f56072f 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -308,6 +308,7 @@ sane way, here is the complete list of changed key bindings - json (thanks to Sylvain Benner, Boris Buliga and Tommi Komulainen) - jsonnet (thanks to liztio and Robby O'Connor) - julia (thanks to Adam Beckmeyer and Guido Kraemer) +- kivy (thanks to Ryota Kayanuma) - kotlin (thanks to Shanavas M) - pact (thanks to Colin Woodbury) - perl5 (thanks to Troy Hinckley, Jinseop Kim and Michael Rohleder) @@ -1849,6 +1850,8 @@ Other: - Improved support for workman keyboard layout (thanks to Benjamin Reynolds) - Added =after-config= hooks for lazy-loaded packages (thanks to CharlesHD) - Added undo-tree visualizer mapping (thanks to CharlesHD) +**** Kivy +- Added the =kivy= package (thanks to Nasser Alshammari and Ryota Kayanuma) **** LaTeX - New package =magic-latex-buffer= (thanks to benquebec) - New layer variable =latex-enable-magic= to enable =magic= symbols in latex @@ -1949,7 +1952,6 @@ Other: - Added ebuild-mode (thanks to Kai Wohlfahrt) - Added the vala programming language (thanks to Steven Allen) - Added hoon (thanks to Hunter Haugen) -- Added kivy (thanks to Nasser Alshammari) **** Mu4e - Added custom Spacemacs layout for =mu4e= buffers (thanks to Benjamin Reynolds) - Key bindings: diff --git a/layers/+lang/kivy/README.org b/layers/+lang/kivy/README.org new file mode 100644 index 000000000..b116bbd90 --- /dev/null +++ b/layers/+lang/kivy/README.org @@ -0,0 +1,18 @@ +#+TITLE: Kivy layer + +#+TAGS: dsl|layer|programming + +* Table of Contents :TOC_5_gh:noexport: +- [[#description][Description]] + - [[#features][Features:]] +- [[#install][Install]] + +* Description +This layer adds support for Kivy, cross-platform GUI framework for Python. + +** Features: +- Syntax Highlighting + +* Install +To use this configuration layer, add it to your =~/.spacemacs=. +You will need to add =kivy= to the existing =dotspacemacs-configuration-layers= list in this file. diff --git a/layers/+lang/kivy/packages.el b/layers/+lang/kivy/packages.el new file mode 100644 index 000000000..9c1e87464 --- /dev/null +++ b/layers/+lang/kivy/packages.el @@ -0,0 +1,27 @@ +;;; packages.el --- kivy layer packages file for Spacemacs. +;; +;; Copyright (c) 2012-2018 Sylvain Benner & Contributors +;; +;; Author: Ryota Kayanuma +;; URL: https://github.com/syl20bnr/spacemacs +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + + +(defconst kivy-packages + '( + kivy-mode + ) + "The list of Lisp packages required by the kivy layer.") + +(defun kivy/init-kivy-mode () + (use-package kivy-mode + :defer t + :init + (progn + ;; config goes here. + ))) + +;;; packages.el ends here diff --git a/layers/+lang/major-modes/README.org b/layers/+lang/major-modes/README.org index e8f83b5ab..5fa5cb68d 100644 --- a/layers/+lang/major-modes/README.org +++ b/layers/+lang/major-modes/README.org @@ -19,7 +19,6 @@ This layer adds a number of packages for less common languages and major modes. - Android Logcat (not associated with any file types by default) - Gentoo ebuilds - Hoon - - Kivy - MATLAB - QML - OpenScad diff --git a/layers/+lang/major-modes/packages.el b/layers/+lang/major-modes/packages.el index 3eea3e4a2..6727722b5 100644 --- a/layers/+lang/major-modes/packages.el +++ b/layers/+lang/major-modes/packages.el @@ -14,7 +14,6 @@ arduino-mode (ebuild-mode :location (recipe :fetcher github :repo "emacsmirror/ebuild-mode")) (hoon-mode :location (recipe :fetcher github :repo "urbit/hoon-mode.el")) - kivy-mode (logcat :location (recipe :fetcher github :repo "dcolascione/logcat-mode")) matlab-mode pkgbuild-mode @@ -46,8 +45,6 @@ (use-package logcat :commands (logcat logcat-mode))) -(defun major-modes/init-kivy-mode ()) - (defun major-modes/init-matlab-mode () (use-package matlab-mode :defer t