This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-05
Channels
- # 100-days-of-code (1)
- # announcements (7)
- # beginners (84)
- # boot (1)
- # cider (22)
- # cljdoc (14)
- # cljs-dev (45)
- # cljsrn (6)
- # clojure (65)
- # clojure-conj (7)
- # clojure-finland (1)
- # clojure-italy (7)
- # clojure-nl (2)
- # clojure-serbia (1)
- # clojure-uk (111)
- # clojurescript (58)
- # cursive (8)
- # datomic (68)
- # duct (1)
- # emacs (33)
- # figwheel (3)
- # figwheel-main (9)
- # fulcro (33)
- # graphql (1)
- # juxt (30)
- # kaocha (4)
- # off-topic (22)
- # pathom (47)
- # pedestal (4)
- # planck (6)
- # re-frame (1)
- # reagent (1)
- # reitit (13)
- # shadow-cljs (49)
- # spacemacs (7)
- # sql (6)
- # tools-deps (60)
@dadair Depending on what you are doing, you could just use normal org-mode
and not rely on org-contact
. I don’t maintain my contacts in emacs (maybe I should), but if I were going to I would write an emacs function that prompted me for inputs like contact name, phone number, email, category, and drop that information in a
file using some kind of structure like
* dadair
:properties:
:phone:
:email: [email protected]
:address: dadair's address
Then you could use org agenda to search for contacts.Thanks! My only concern with something hand-rolled is integrating with mu4e or gnus (I’ll be migrating to one of them soon)
I wish I had some advice for you there. I don’t use either of those tools. The emacs subreddit or an irc may be good places to find advice for what you are trying to do.
Any users of inferior-clojure here? I can connect to a remote REPL but can’t get my buffer to acknowledge that it is connected. Instead, it always shows “Inferior Clojure: no process”.
What does inf-clojure-buffer
say?
It says that I should use it to set up the, well, inf-clojure-buffer that commands go to — but its value is already *inf-clojure*
which is the buffer that commands should go to.
Evaling this in the minibuffer: (setq inf-clojure-buffer "*inf-clojure*")
doesn’t seem to fix anything.
Do you have the variable inferior-lisp-program
? If so is it set to anything, like "lein run"
?
Evaluating inferior-lisp-program
throws an error, and describe-variable
& ivy refuses to autocomplete it, so probably not?
I’m not too familiar with inferior clojure, but I thought it might use inferior lisp under the hood.
(defun inf-clojure-proc ()
"Return the current inferior Clojure process.
See variable `inf-clojure-buffer'."
(let ((proc (get-buffer-process (if (derived-mode-p 'inf-clojure-mode)
(current-buffer)
inf-clojure-buffer))))
(or proc
(error "No Clojure subprocess; see variable `inf-clojure-buffer'"))))
I can’t make sense of this…Have you added this to your init file?
(autoload 'inf-clojure "inf-clojure" "Run an inferior Clojure process" t)
(add-hook 'clojure-mode-hook #'inf-clojure-minor-mode)
I was just able to get inferior clojure up and running on my emacs (normally I use cider). Here are the steps I took Add this to my init file,
(use-package inf-clojure
:ensure t
:pin "melpa"
:config
(autoload 'inf-clojure "inf-clojure" "Run an inferior Clojure process" t)
(add-hook 'clojure-mode-hook #'inf-clojure-minor-mode))
If you don’t use use-package
, you should be able to install it, and in your init file add
(require 'inf-clojure)
(autoload 'inf-clojure "inf-clojure" "Run an inferior Clojure process" t)
(add-hook 'clojure-mode-hook #'inf-clojure-minor-mode)
Evaluate the code, whether it is use package or something else, then in a clojure buffer (I picked a project.clj), run M-x inf-clojure
and watch your repl start up. You should have leiningen or whatever tool you use installed and available on your path so emacs and inf-clojure can find it.Oh I see.
And this does create the *inf-clojure*
buffer, but then for some reason my actual source file is not connected to that.
OK, I managed to do something too — the key bit is to make sure you are first on Clojure major mode, and the invoke inf-clojure-minor-mode
I just tried the same thing with my basic inf-clojure
setup, and couldn’t get it working
I get an error saying comint-propmpt-regexp
not set properly. The *inf-clojure*
buffer is not acting like it’s connected to a repl. It’s just an empty buffer with no prompts.
Which is what confused me — the Clojure source buffer needs to have inf-clojure minor mode, not inf-clojure-mode
Well I use cider so i’m not worried about mine. You should have inf-clojure-minor-mode
already enabled in clojure-mode
bufferes if you add it in a hook. Doing that would keep you from having to start the minor mode every time
Yep- I figured it out now. I also use cider usually but this is to connect to a remote socket REPL that doesn’t have nRepl etc.
So I have to set it up manually. I’ll probably end up just bundling nRepl and the relevant middleware to be able to just use cider there.
Indeed. Glad you were able to figure it out 🎉