This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-13
Channels
- # beginners (202)
- # boot (7)
- # cider (14)
- # clara (2)
- # cljs-dev (7)
- # clojure (56)
- # clojure-italy (9)
- # clojure-spec (6)
- # clojure-uk (12)
- # clojurescript (40)
- # core-async (3)
- # datomic (6)
- # duct (1)
- # editors (10)
- # emacs (5)
- # fulcro (24)
- # off-topic (16)
- # onyx (4)
- # pedestal (1)
- # planck (8)
- # portkey (2)
- # re-frame (31)
- # reagent (23)
- # tools-deps (8)
- # vim (3)
Is there any built-in emacs frunction to get the boundries of a whole s-expression the cursor is in. Trying to trace down the keybinding "<C-M x>" in cider and emacs-mode, can't seem to find which function is responsible for selecting the sexp for evaluation.
right in front of my eyes
(save-excursion
(end-of-defun)
(beginning-of-defun)
(setq beg (point))
(setq form (read (current-buffer)))
(setq end (point)))
beg
and end
mark the boundries.There are no built-in functions. You can take a look at cider-sexp-at-point
and cider-last-sexp
.
Those should eventually end up in clojure-mode
, but as it stands - they live only in CIDER>
Hi there! CIDER q.
I'd like to (prn *e)
whenever I hit an error in the repl. I am aware that cider-show-error-buffer
exists, but for now I have it set to nil
(it still can be handy to visit *cider-error*
which fortunately is always created. But I don't like popups)
How can one establish such behavior?
This was my attempt, did nothing: (Thread/setDefaultUncaughtExceptionHandler (reify Thread$UncaughtExceptionHandler (uncaughtException [_ thread e] (prn e))))