This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-01
Channels
- # beginners (133)
- # boot (59)
- # cider (5)
- # cljs-dev (30)
- # cljsrn (23)
- # clojure (212)
- # clojure-austin (3)
- # clojure-brasil (1)
- # clojure-chicago (5)
- # clojure-italy (10)
- # clojure-russia (5)
- # clojure-serbia (1)
- # clojure-spec (34)
- # clojure-turkiye (2)
- # clojure-uk (132)
- # clojurescript (163)
- # clojutre (1)
- # cursive (5)
- # datomic (58)
- # emacs (42)
- # events (1)
- # graphql (26)
- # hoplon (16)
- # jobs (1)
- # lumo (27)
- # numerical-computing (3)
- # off-topic (127)
- # om (9)
- # onyx (24)
- # re-frame (20)
- # reagent (20)
- # ring-swagger (14)
- # sql (19)
- # unrepl (28)
- # untangled (3)
- # vim (8)
- # yada (17)
@norman could possibly just a M-x new-frame
do what you need?
Just tried and my emacs grumbled, This function is obsolete since 22.1; use make-frame instead.
how can I make a cider-debug buffer read only? I keep typing changes into it and then loosing them ๐
Anybody using tramp
and docker-tramp
to connect to files in a container running on a remote machine? I've encountered some weird behavior
...`C-x C-f /docker:` only autocompletes containers when executed while in an eshell buffer in which I've already cd
'd into the remote machine, which would be fine except after selecting the appropriate container, files listed are in my laptop's root directory, not the container.
Anyone know in elisp if there's a way to get to the path of the current elisp file? (i.e. the one a function is defined in, not the current buffer)
(defun unrepl-read-blob ()
;;TODO don't hard code this
(get-string-from-file "/home/arne/github/unrepl.el/blob.clj"))
I might have to come up with some shenanigans traversing from package-user-dir
if it's not possible otherwise
yes, they are always in the same directory, I just need to find where that directory is ๐
file-name-directory
gets you the directory and then if you know the name of the other file you can combine them
what do I pass to file-name-directory
though, if I don't know the location of unrepl.el
?
well it's going to be installed by a user, so it's going to be under their package-user-dir
, unrepl-x.x.x
presumably
I think I can do something with load-file-name
, will only work when loading the package with load
, so it's a bit tedious for development time, but I think it will work
I can't just load it because it's not elisp, it's a clojure blob that I need to send to a repl ๐
I could add a pre-package step to turn it into elisp, wrap it in a (setq unrepl-blob ,,,) (provide 'unrepl-blob)
after doing (load "/home/arne/github/unrepl.el/unrepl.el")
the unrepl-home
is set correctly