This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-14
Channels
- # beginners (183)
- # boot (6)
- # cider (106)
- # cljs-dev (17)
- # cljsjs (2)
- # cljsrn (2)
- # clojure (56)
- # clojure-italy (14)
- # clojure-nl (39)
- # clojure-spec (49)
- # clojure-uk (138)
- # clojurescript (197)
- # core-logic (37)
- # cursive (22)
- # datascript (5)
- # datomic (29)
- # devcards (18)
- # emacs (1)
- # events (8)
- # figwheel (1)
- # fulcro (59)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (54)
- # onyx (3)
- # pedestal (1)
- # portkey (4)
- # re-frame (18)
- # reagent (5)
- # reitit (43)
- # ring (6)
- # ring-swagger (26)
- # shadow-cljs (42)
- # spacemacs (8)
- # specter (12)
- # sql (3)
- # tools-deps (21)
- # vim (18)
is it possible to locate the project dir inside a defun
?
i.e.
(defun dotspacemacs/test-fn ()
"hello"
(interactive)
(let* ((project-dir (locate-dominating-file
(or (buffer-file-name) default-directory)
"src")))
(message "The result is: %s" project-dir)))
I have this function, and I want to run a shell command inside this function, but from the project root directoryI have bound this function to SPC A a
. so if I open up a file that’s under src/something/
dir, and if I do SPC A a
from there, I want to somehow navigate to the root dir, where src
folder is and run a shell command there