-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.el
29 lines (26 loc) · 958 Bytes
/
packages.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;;; packages.el --- exercism.io layer packages file for Spacemacs.
;;
;; Copyright (c) 2017 by Seçkin KÜKRER
;;
;; Author: Seçkin KÜKRER <seckin.kukrer@hotmail.com>
;; URL: https://github.com/leavenha/exercism-layer
;;
;; This file is not part of GNU Emacs.
;;
;;; License: MIT
;; [TODO ask, is seperation of mode and layer important ?]
(defconst exercism-layer-packages
'((exercism-mode :location (recipe :fetcher github
:repo "LeaveNhA/exercism-mode"))))
(defun exercism-layer/init-exercism-mode ()
(use-package exercism-mode
:config
(with-eval-after-load 'exercism-mode
(require 'exercism-mode))))
(defun exercism-layer/post-init-exercism-mode ()
(progn
(spacemacs/declare-prefix "E" "Exercism")
(spacemacs/declare-prefix "Ex" "Exercise")
(spacemacs/set-leader-keys
"Exf" 'exercism-mode/fetch-new-exercise
"Exs" 'exercism-mode/send-solution-to-exercism)))