This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-15
Channels
- # announcements (13)
- # beginners (106)
- # cider (70)
- # cljdoc (1)
- # cljsjs (1)
- # clojure (97)
- # clojure-finland (1)
- # clojure-italy (13)
- # clojure-mexico (16)
- # clojure-russia (1)
- # clojure-spec (53)
- # clojure-uk (146)
- # clojurescript (44)
- # core-async (5)
- # cryogen (1)
- # css (1)
- # cursive (11)
- # datomic (89)
- # duct (10)
- # emacs (4)
- # figwheel-main (58)
- # fulcro (5)
- # hispano (35)
- # hyperfiddle (1)
- # jobs (2)
- # jobs-discuss (1)
- # lambdaisland (1)
- # leiningen (3)
- # off-topic (13)
- # onyx (50)
- # parinfer (3)
- # pedestal (4)
- # reagent (9)
- # ring-swagger (56)
- # rum (3)
- # shadow-cljs (85)
- # spacemacs (4)
- # vim (4)
I wonder if there's a way to "tail" it within emacs, invisibly, and whenever it matches Successfully compiled build
, arbitary elisp code gets run (e.g. (message "Reloaded!")
)
I solved the underlying problem (but not the question itself) with a terminal command instead:
figwheel_notifications(){
tail -n 1 -F figwheel_server.log | grep --line-buffered "Successfully\|Failed to compile\|Compiler Warning" | while IFS='' read line; do
if grep --silent Succ <<< $line; then
terminal-notifier -title 'Figwheel' -message "Successfully recompiled."
elif grep --silent Warn <<< $line; then
terminal-notifier -title 'Figwheel' -message "Compilation warning."
else
terminal-notifier -title 'Figwheel' -message "Compilation error."
fi
done
}
Uses https://github.com/julienXX/terminal-notifier