This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-30
Channels
- # bangalore-clj (1)
- # beginners (23)
- # boot (1)
- # cider (23)
- # cljsjs (2)
- # cljsrn (4)
- # clojure (251)
- # clojure-dusseldorf (2)
- # clojure-gamedev (23)
- # clojure-italy (5)
- # clojure-russia (53)
- # clojure-sanfrancisco (5)
- # clojure-spec (7)
- # clojure-uk (66)
- # clojurescript (169)
- # community-development (21)
- # core-async (10)
- # cursive (15)
- # data-science (1)
- # datomic (7)
- # docker (1)
- # emacs (24)
- # events (1)
- # funcool (6)
- # hoplon (24)
- # liberator (1)
- # luminus (6)
- # lumo (62)
- # mount (7)
- # off-topic (1)
- # om (12)
- # om-next (5)
- # onyx (14)
- # overtone (2)
- # pedestal (58)
- # powderkeg (27)
- # protorepl (1)
- # re-frame (1)
- # ring-swagger (16)
- # rum (51)
- # spacemacs (25)
- # uncomplicate (7)
- # unrepl (22)
- # untangled (7)
- # yada (109)
i want to run a process, and insert its output at some specific point in a buffer when the process is done
i know flycheck does something like this (adding underlines when a linter completes), but i don't understand its code
if you have a more recent version of emacs, that might be a use case for the new async-*
functions
@chrisblom: from my limited experience elisping, probably easierst to (1) redirect output from cmd to some buffer, (2) on some trigger, (3) insert the contents of the buffer
Hi, I recently made the switch from Vim to Emacs + evil-mode for all of my clojuring. In customizing settings (specifically evil-leader key mappings for cider commands), I am having to repeat stuff in my init.el for each of the clojure modes: clojure-mode, clojurescript-mode, and clojurec-mode (for .cljc files) In this particular case, I’m pretty sure I can do something like
(setq cider-key-mappings '(”ci” cider-jack-in …))
(apply evil-leader/set-key-for-mode ‘clojure-mode cider-key-mappings)`
(apply evil-leader/set-key-for-mode ‘clojurescript-mode cider-key-mappings)
…
But generally, I was wondering if there was some way to refer to all three modes with the same name, something like (evil-leader/set-key-for-mode ‘any-clojure-mode …)
, or if there’s some other technique for applying customization to all clojurey modes that experienced emacs users use.very similar version to what I do:
(defun enable-lisp-hooks (mode-name)
"Enable lisp-y goodness for MODE-NAME."
(let ((mode-hook (intern (concat (symbol-name mode-name) "-hook"))))
(add-hook mode-hook 'smartparens-strict-mode)
(add-hook mode-hook 'rainbow-delimiters-mode)))
(-each sp--lisp-modes 'enable-lisp-hooks)
@bballantine : similar to @dpsutton and @tanzoniteblack , I have one function called "do-lisp-stuff", then for elisp, clj, cljs, hy, I have it all call do-lisp-stuff
Thanks @dpsutton @tanzoniteblack and @qqq that’s really helpful. I’ll use the same technique.
-each
is from the fantastic https://github.com/magnars/dash.el library, btw, which includes the majority of the clojure seq operating functions that you're used to
thanks… i was just about to look that up.
wait a second, dash.el, https://github.com/magnars/parens-of-the-dead and emacs rocks are created by the same person?
@magnars best possible person to respond to that 😄 . Also, thank you for dash, it makes writing elisp enjoyable
@magnas: you owe me 3 months of salary; after watching your parens of the dead series, I swithced from vim to emacs, and have spent the past 3 months configuring elisp, emacs, cider, helm, projectile, ivy, avy, counsel, inferior-lisp
@tanzoniteblack after using Emacs for a while without, it had to be done. I made it in a fit of rage after trying to use the built in functions. 🙃
is that why it's original name was bang
?
joking aside; has anyone ported clojure's immutable data structures to elisp?
or is there a good equivalent anyways, if not a port