spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
kah0ona 2020-12-16T12:16:31.189900Z

Hi folks, very basic question but: i’d like to add a binding to the clojure minor mode. Where is the preferred way to do this? I’d like , e ; to be mapped to 'cider-eval-defun-to-comment

erwinrooijakkers 2020-12-18T15:08:27.217400Z

I have this:

;; Print eval sexp
  (define-key evil-normal-state-map (kbd "C-;") 'cider-pprint-eval-last-sexp-to-comment)
in dotspacemacs/user-config of .spacemacs C-; prints evaluation to comment. 🙂

kah0ona 2020-12-16T12:17:46.190800Z

i assume i shouldn’t just edit /layers/+lang/clojure/packages.el (it could work of course)? Or should I fork spacemacs or something?

kah0ona 2020-12-16T12:20:30.192400Z

@jr0cket (yes i’m watching your video 🙂 )

practicalli-john 2020-12-16T12:21:27.193Z

@kah0ona Hello, the example you gave is already a key binding. I suspect you are using a very old version of Spacemacs, i.e. version 0.200. I recommend using Spacemacs 0.300, available on the develop branch A guide to switching successfully is at https://practicalli.github.io/spacemacs/install-spacemacs/switch-to-develop.html

kah0ona 2020-12-16T12:21:47.193500Z

aha!

kah0ona 2020-12-16T12:22:08.194300Z

I just found your video and content, so I ’m guessing some studying on your blog would solve lots of questions 🙂

practicalli-john 2020-12-16T12:22:10.194400Z

Maybe take a look at the book when you have time, or feel free to ask questions (its how I learn how to write an even better book)

kah0ona 2020-12-16T12:22:30.194600Z

okay thanks

kah0ona 2020-12-16T12:23:00.195600Z

congrats on the cognitect sponsoring btw, well deserved. through that post I found your video, fwiw

kah0ona 2020-12-16T12:23:42.196700Z

ok thanks. i kind of started using spacemacs in 2017, but haven’t really tweaked it very much, but your vid inspired me to improve some stuff

practicalli-john 2020-12-16T12:23:49.196900Z

I also have a Spacemacs config if you want all the settings I use. Take a quick look at the install process to see if its for you https://practicalli.github.io/spacemacs/install-spacemacs/

kah0ona 2020-12-16T12:24:18.197400Z

great! much appreciated, will dive into this 🙂

practicalli-john 2020-12-16T12:25:29.198100Z

I might need a new install version of the video now that Emacs 27 is out... which works very well with Spacemacs. Apart from that it should all work

practicalli-john 2020-12-16T12:29:06.200100Z

Good to know how you found the Practicalli content, hopefully it will help even more people now.

kah0ona 2020-12-16T12:31:11.200600Z

i’m on spacemacs 0.200.1 @ emacs 27.1

kah0ona 2020-12-16T12:31:39.201100Z

so will upgrade that soon

kah0ona 2020-12-16T12:31:45.201400Z

using your guide

practicalli-john 2020-12-16T12:32:15.202100Z

Spacemacs 0.300 has 2.5 years worth of updates and fixes. Its what I have used for the last 2.5 years 🙂

practicalli-john 2020-12-16T12:32:40.202800Z

There are a few key binding changes, but almost all are additive

kah0ona 2020-12-16T12:32:44.202900Z

yeah really need to upgrade

kah0ona 2020-12-16T12:32:47.203100Z

missing out