From 828a1919dfcd2117b2f964beff20c69d56d53533 Mon Sep 17 00:00:00 2001 From: Jordan Kaye Date: Mon, 27 Nov 2017 21:02:56 -0600 Subject: [PATCH] Add dotnet cli layer --- CHANGELOG.develop | 17 ++++++++++++++ layers/+tools/dotnet/README.org | 40 ++++++++++++++++++++++++++++++++ layers/+tools/dotnet/packages.el | 33 ++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 layers/+tools/dotnet/README.org create mode 100644 layers/+tools/dotnet/packages.el diff --git a/CHANGELOG.develop b/CHANGELOG.develop index c95b3de33..5acf29050 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -333,6 +333,7 @@ sane way, here is the complete list of changed key bindings - cmake (thanks to Alexander Dalshov, Sylvain Benner and Jonas Jelten) - dap (thanks to Ivan Yonchovski) - debug (thanks to Hodge Shen, Troy Hinckley, and Sylvain Benner) +- dotnet (thanks to Jordan Kaye) - emberjs (thanks to Robert O'Connor) - import-js (thanks to Thanh Vuong and Seong Yong-ju) - lsp (thanks to Fangrui Song, 0bl.blwl, Cormac Cannon, Juuso Valkeejärvi, @@ -1259,6 +1260,22 @@ Other: - Added ~SPC a D C~ for =docker-compose= (thanks to Daniel Caixinha) - Fix: broken package declaration for dockerfile-mode (thanks to Maximilian Wolff) +**** Dotnet +- Key bindings: + - Added key bindings for =dotnet= (thanks to Jordan Kaye): + - ~SPC m d a p~ Add package to the current dotnet project + - ~SPC m d a r~ Add reference to the current dotnet project + - ~SPC m d b~ Build the current dotnet project + - ~SPC m d c~ Clean the current dotnet project + - ~SPC m d n~ Create a new dotnet project + - ~SPC m d p~ Publish the current dotnet project + - ~SPC m d r a~ Run the current dotnet project with arguments + - ~SPC m d r r~ Restore the current dotnet project + - ~SPC m d s a~ Add to the current dotnet solution + - ~SPC m d s l~ List the current dotnet solution + - ~SPC m d s n~ Create a new dotnet solution + - ~SPC m d s r~ Remove from the current dotnet solution + - ~SPC m d t~ Run tests for the current dotnet project **** Elfeed - Fixed selection bindings in visual state (thanks to Jeremy Symon) - Fixed not saving on quit (thanks to Andrew Stevanus) diff --git a/layers/+tools/dotnet/README.org b/layers/+tools/dotnet/README.org new file mode 100644 index 000000000..566b6eac9 --- /dev/null +++ b/layers/+tools/dotnet/README.org @@ -0,0 +1,40 @@ +#+TITLE: Dotnet layer + +* Table of Contents :TOC_4_gh:noexport: +- [[#description][Description]] + - [[#features][Features:]] +- [[#packages-included][Packages Included]] +- [[#install][Install]] +- [[#key-bindings][Key Bindings]] + +* Description +This layer adds support for the dotnet cli package. + +** Features: +- dotnet operations + +* Packages Included +- [[https://github.com/julienXX/dotnet.el][dotnet]] + +* Install +To use this configuration layer, add it to your =~/.spacemacs=. You will need to +add =dotnet= to the existing =dotspacemacs-configuration-layers= list in this +file. + +* Key Bindings + +| Key binding | Description | +|---------------+-----------------------------------------------| +| ~SPC m d a p~ | Add package to the current dotnet project | +| ~SPC m d a r~ | Add reference to the current dotnet project | +| ~SPC m d b~ | Build the current dotnet project | +| ~SPC m d c~ | Clean the current dotnet project | +| ~SPC m d n~ | Create a new dotnet project | +| ~SPC m d p~ | Publish the current dotnet project | +| ~SPC m d r a~ | Run the current dotnet project with arguments | +| ~SPC m d r r~ | Restore the current dotnet project | +| ~SPC m d s a~ | Add to the current dotnet solution | +| ~SPC m d s l~ | List the current dotnet solution | +| ~SPC m d s n~ | Create a new dotnet solution | +| ~SPC m d s r~ | Remove from the current dotnet solution | +| ~SPC m d t~ | Run tests for the current dotnet project | diff --git a/layers/+tools/dotnet/packages.el b/layers/+tools/dotnet/packages.el new file mode 100644 index 000000000..a3103eb89 --- /dev/null +++ b/layers/+tools/dotnet/packages.el @@ -0,0 +1,33 @@ +;;; packages.el --- Dotnet Layer packages File for Spacemacs +;; +;; Author: Jordan Kaye +;; URL: https://github.com/syl20bnr/spacemacs +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + +(setq dotnet-packages + '( + dotnet + )) + +(defun dotnet/init-dotnet () + (use-package dotnet + :defer t + :init + (spacemacs/set-leader-keys-for-major-mode 'fsharp-mode + "dap" 'dotnet-add-package + "dar" 'dotnet-add-reference + "db" 'dotnet-build + "dc" 'dotnet-clean + "dn" 'dotnet-new + "dp" 'dotnet-publish + "dra" 'dotnet-run-with-args + "drr" 'dotnet-run + "drs" 'dotnet-restore + "dsa" 'dotnet-sln-add + "dsl" 'dotnet-sln-list + "dsn" 'dotnet-sln-new + "dsr" 'dotnet-sln-remove + "dt" 'dotnet-test)))