This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-11
Channels
- # beginners (18)
- # boot (1)
- # cider (48)
- # cljs-dev (5)
- # cljsrn (2)
- # clojure (34)
- # clojure-greece (1)
- # clojure-mexico (3)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (67)
- # cursive (1)
- # data-science (2)
- # defnpodcast (2)
- # fulcro (10)
- # jobs (3)
- # klipse (14)
- # off-topic (9)
- # pedestal (2)
- # re-frame (8)
- # spacemacs (2)
- # specter (2)
- # vim (2)
- # yada (1)
OK, that was easy. I'm editing LaTeX and every time I save I'm recompiling the file, so my fingers are getting used to the rhythm of SPC f s SPC c r
. Then I thought, "Isn't there a way to add hooks in emacs? Could I automatically compile after saving the file?" Answer: yes. A couple of minutes later, after a couple quick web searches and a SPC h d k
to describe what function gets called when I say SPC c r
to recompile, et viola!
> :(add-hook 'after-save-hook 'recompile)
Or, better yet, :(add-hook 'after-save-hook 'recompile nil t)
to make a buffer-local hook.