This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-15
Channels
- # announcements (5)
- # architecture (17)
- # aws (2)
- # bangalore-clj (1)
- # beginners (157)
- # boot (22)
- # boot-dev (2)
- # cider (64)
- # clara (2)
- # cljs-dev (3)
- # clojure (30)
- # clojure-art (2)
- # clojure-australia (1)
- # clojure-belgium (1)
- # clojure-denver (1)
- # clojure-dusseldorf (1)
- # clojure-europe (8)
- # clojure-finland (2)
- # clojure-italy (9)
- # clojure-nl (21)
- # clojure-spec (261)
- # clojure-switzerland (3)
- # clojure-uk (67)
- # clojurescript (57)
- # clojurewerkz (2)
- # cursive (3)
- # datomic (27)
- # emacs (12)
- # figwheel-main (2)
- # fulcro (48)
- # garden (67)
- # graphql (41)
- # jobs (8)
- # kaocha (8)
- # liberator (2)
- # lumo (1)
- # off-topic (19)
- # parinfer (9)
- # perun (4)
- # re-frame (50)
- # reagent (7)
- # remote-jobs (4)
- # ring-swagger (20)
- # rum (6)
- # shadow-cljs (170)
- # specter (3)
- # tools-deps (19)
- # vim (3)
@mpenet yep I like use-package
Is there a way in Emacs to rebind a function's definition when calling that function from inside another one?
I want to rebind the function call to indent-pp-sexp
to my own function
but I only want the rebinding to happen when indent-pp-sexp
is called from inside custom-save-variables
. Is that something you can do with advice?
I couldn't see anything that quite fit the bill
Have you already tried an :around
advice with a cl-letf
for the function you want to re-bind?
Nope, I thought Iād want some kind of replace
Or conditional replace
Adding an advice to custom-save-variables
with a cl-letf
for indent-pp-sexp
should achieve what you are trying to do, I think.
CIDER 0.20 is out https://metaredux.com/posts/2019/01/15/cider-oslo.html Enjoy!