This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-01
Channels
- # beginners (2)
- # cider (20)
- # cljsjs (3)
- # clojure (86)
- # clojure-italy (2)
- # clojure-spec (7)
- # clojure-uk (3)
- # clojurescript (8)
- # defnpodcast (3)
- # emacs (10)
- # figwheel (1)
- # hoplon (9)
- # immutant (4)
- # keechma (2)
- # luminus (11)
- # off-topic (13)
- # re-frame (6)
- # reagent (3)
- # ring (1)
- # specter (5)
- # sql (2)
- # unrepl (127)
(defun wrap-hydra (f)
(lambda ()
(interactive)
(evil-normal-state)
((symbol-function f))))
(general-define-key "<end>" (lambda () (interactive) (evil-normal-state) (hydra-end-key/body)))
(general-define-key "<end>" (wrap-hydra 'hydra-end-key/body))
the first works, but the wrap-hydra fails; what am I doing wrong?can you please enlighten me on this, which step is wrong?
1. elisp is a lisp-2, f
has three fields attached to it, whch can be retrieved via symbol-name
symbol-value
symbol-function
2. (symbol-function f)
extracts the function from the symbol
3. ((symbol-function f))
calls the extracted function
clearly I'm wrong somewhere; question is: which step ?i
=== I'm weak in elisp. Is there an easy way to count the number of leading spaces in an emacs string?
I’m doing development with emacs / cider - and noticing that on Mac OS - a process called “Loader” sometimes spikes to like > 200% CPU. Has anyone seen this before and know what I might be doing wrong? I’m doing some core.async development - wondering if I am generating threads that aren’t completing??