Fork me on GitHub
#emacs
<
2017-01-24
>
qqq12:01:00

how od I run inferior-lisp with a particular working directory?

qqq15:01:19

so I just spent about 5 hours debugging with a (defun ... ) was causing all types of problems

qqq15:01:24

turns out, I was overwriing an emacs builtin

qqq15:01:34

there should be warnings for things like this "you're overwriting an emacs builtin

radon17:01:40

Usually, all the function names in a package are prefixed with the package name. Generally, people try to do the same thing in their init-file. Don’t define get-file, define qqq-get-file or somesuch. That prevents such an error from happening.

qqq17:01:37

yeah, I'm now prefixing everything with my

caio17:01:45

i think qqq:get-file is prettier 💅

qqq17:01:46

so it's now my-select-frame instead of overwriting emacs's builtlin select-frame

qqq17:01:59

is : a valid char in emacs symbols?

qqq17:01:15

while this channel is semi active

qqq17:01:25

can anyone point me at docs at writing my own inferior lisp mode?

qqq17:01:36

I need something to interface with boot in a particular way, and inferior lisp seems to be documented nowhere

qqq17:01:49

I just need "send this string to this buffer, wait for response, and display response"

madstap19:01:23

Noob question: I'm using prelude, and I can't figure out where I'm supposed to put (define-clojure-indent ...). I can eval it in *scratch* without a problem, but if I put it in a file in emacs.d/personal/ I get Symbol's function definition is void: define-clojure-indent

ghosss21:01:33

@madstap if clojure-mode isn't required before your emacs.d/personal stuff is evaluated, define-clojure-indent won't be defined yet. It looks like adding (prelude-require-package 'clojure-mode) before calling define-clojure-indent should work: https://github.com/bbatsov/prelude#personalizing

ghosss21:01:46

alternately, you could wrap it in eval-after-load:

(eval-after-load 'clojure-mode
  '(define-clojure-indent ...))

madstap21:01:35

Thanks, wrapping it in eval-after-load worked.

richiardiandrea22:01:36

@qqq I am curious now 😀 why writing a new inf-clojure? Which part of boot do you want to target?

qqq23:01:59

@richiardiandrea : recently switched form lein to boot, saw how simple boot was, andbecame curious whether I could get a inf-lisp to work with boot; turns out it was pretty easy

richiardiandrea23:01:17

@qqq yes because inf-clojure just needs a server that can accept input, so I was kind of wondering if it would work out of the box with boot