This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-28
Channels
- # adventofcode (2)
- # bangalore-clj (3)
- # beginners (171)
- # boot (28)
- # chestnut (3)
- # cljs-dev (20)
- # cljsjs (5)
- # clojure (280)
- # clojure-austin (1)
- # clojure-czech (1)
- # clojure-dev (9)
- # clojure-dusseldorf (2)
- # clojure-greece (20)
- # clojure-italy (6)
- # clojure-poland (16)
- # clojure-russia (7)
- # clojure-serbia (4)
- # clojure-sg (1)
- # clojure-spec (18)
- # clojure-uk (153)
- # clojurescript (57)
- # core-async (9)
- # cursive (21)
- # data-science (29)
- # datomic (18)
- # dirac (8)
- # docker (6)
- # duct (1)
- # emacs (50)
- # fulcro (15)
- # hoplon (56)
- # klipse (3)
- # leiningen (14)
- # lumo (1)
- # off-topic (5)
- # onyx (13)
- # other-languages (14)
- # pedestal (1)
- # perun (5)
- # planck (17)
- # re-frame (10)
- # reagent (2)
- # ring (1)
- # spacemacs (51)
- # sql (14)
- # test-check (16)
- # testing (1)
- # unrepl (93)
Hi guys. I just wanna create a package and assing a binding to that function. Any tutorial or document ?
@scknkkrer checkout this guide: it does a pretty good job of explaining all of spacemacs configuring
check this snippet out:
dotspacemacs-additional-packages
'(
(mypackage :location (recipe :fetcher github :repo "githubuser/mypackage"))
)
part of this FAQ https://github.com/mbertheau/spacemacs-faq/wiki#how-do-i-install-an-emacs-package-from-github
@scknkkrer I would check the *messages*
buffer first to see if it reports an error when it tries to load it.
Oh. I would expect it to, on the face of it. Not sure I've actually used use-package
, it just sounds like it would 😆
Chris, here is the thing. I started development on spacemacs yesterday. I read a lot. But every documentation shows the things from far away. so tiny perspective.
(defconst exercism-layer-packages
'(evil-magit (exercism-mode :location (recipe :fetcher github
:repo "LeaveNhA/exercism-mode"))))
(defun exercism-layer/post-init-evil-magit ()
(with-eval-after-load 'magit
(require 'evil-magit)
(evil-define-key 'motion magit-mode-map
(kbd dotspacemacs-leader-key) spacemacs-default-map)))
(defun exercism-layer/init-exercism-mode ()
(use-package exercism-mode
:defer t))
(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)))
But when I don’t define the package functions in my layer. It says invalid commandp……. I think it really don’t load my mode properly.
@scknkkrer you might want to consider bringing it up in the Spacemacs gitter -- that seems to be where a lot of the SM devs hang out. https://gitter.im/syl20bnr/spacemacs
@eggsyntax also, when I require the package, it says; Required feature was not provided
Definitely way outside my expertise; I've never tried to do anything at all complicated with packages. I mostly stick with existing layers.
If anyone who use http://exercism.io for exercise in spacemacs.
Nice work @scknkkrer! Just curious, have you opened a PR to add the layer to core spacemacs? That'd be neat to see.
Did you get all your problems straightened out?
@eggsyntax I am with you on that!
oh what a cool idea @scknkkrer!
@scknkkrer I believe you need layers.el in your dir. where you declare layers that your layer depends upon