emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
viesti 2021-04-14T05:56:38.130200Z

ah, think I updated lsp-mode, but maybe was on an older version, which didn't have .clj-kondo for ignore

viesti 2021-04-14T05:57:19.130400Z

I wondered where the files came from, then scripted some stats:

for d in `find . -maxdepth 1 -type d | sort`; do echo $d; find $d | wc -l; done

viesti 2021-04-14T05:57:58.130600Z

maybe could even include a script like that in the lsp-mode docs to help people uncover hidden black holes of stuff in project directory 😄

ericdallo 2021-04-14T12:27:04.130900Z

Yeah, you are the second person to ask for the same thing this week, I'll try to improve lsp-mode log to log the folders scanned into lsp-log buffer

ericdallo 2021-04-14T12:55:19.131100Z

@viesti https://github.com/emacs-lsp/lsp-mode/pull/2779

viesti 2021-04-14T12:56:23.131400Z

nice, thank you! 🙂

1👍
viesti 2021-04-14T12:59:21.131600Z

I also went to lsp logs to get to that watch info, then checking project directories and adding filters to lsp-mode configuration, until I got below the default 1000 file limit warning. This logging will be helpful in the future I think 🙂

ericdallo 2021-04-14T13:00:05.131900Z

yeah, also I added .shadow-cljs, babel cache folders to default ignore list

viesti 2021-04-14T13:03:00.132200Z

Nice! Better defaults make people trip less 🙂 (takes a bit of time to get good defaults, in a case like this)

1
eggsyntax 2021-04-14T16:58:34.137700Z

Mostly in the interest of getting it into the clojurians slack archives: I prefer to have word motions in Clojure buffers treat hyphens/dashes as part of a word. For a while Timothy Pratley's solution (https://timothypratley.blogspot.com/2014/08/clojure-friendly-word-definitions-in.html) did that for me, but starting in emacs 25 that stopped working (as described at https://github.com/emacs-evil/evil/issues/565). I've been living with it for a long time, but finally found a solution. It turned out that subword-mode wasn't handling this properly, and for some reason was always on in my Clojure buffers. So in addition to using Timothy's solution,

(dolist (c (string-to-list ":_-?!#*"))
  (modify-syntax-entry c "w" emacs-lisp-mode-syntax-table))
I also added a hook to disable subword-mode in clj/s buffers:
(add-hook 'clojure-mode-hook       (lambda () (global-subword-mode -1)))
I'm not especially skilled with emacs lisp, so if anyone has a cleaner solution I'd love to hear it.

ericdallo 2021-04-14T17:00:03.138200Z

Merged @viesti

1🎉
Steven Katz 2021-04-14T17:36:05.140400Z

Hi, im new to emacs…cider seems to be starting in a window at the bottom of emacs, it used to start to the right…any idea what changed and how I can change it back?

grazfather 2021-04-14T17:53:02.140500Z

Try in #cider maybe

Steven Katz 2021-04-14T18:42:51.140700Z

will do

Linus Ericsson 2021-04-14T21:27:59.142400Z

I used projectile to full-text-search filenames, which very, very convenient. A month or so ago it suddenly stopped working (after som upgrade or something). What do you use to like C-x f <write part of file name> enter to open it in emacs?

hipster coder 2021-04-15T19:42:20.144100Z

I keep my tools under version control... and do incremental changes... I can run git bisect to find when a commit introduced a bug

hipster coder 2021-04-15T19:43:03.144300Z

that's one of the big advantages of text based tools like Vim, Emacs... opposed to compiling VS Code

1👍
2021-04-15T23:22:09.144800Z

there’s the built-in project-find-file in Emacs 27.2 as well

1
bozhidar 2021-04-16T07:58:45.145300Z

Linus what exactly stopped working in Projectile? There were definitely no material changes to the core functionality in a very long time. (I’m Projectile’s author)

bozhidar 2021-04-16T07:59:22.145500Z

For the record - these days I’m a selectrum user myself, having used before this ido and ivy.

bozhidar 2021-04-16T08:00:53.145700Z

I did remove ido as the default for Projectile which may have surprised a few people, as now if you don’t have any minibuffer completion package enabled you’ll have to press tab for the completion candidates.

bozhidar 2021-04-16T08:01:59.145900Z

See https://docs.projectile.mx/projectile/configuration.html#completion-options for more details.

1🙏
Rolfe Power 2021-04-14T21:37:23.142600Z

I use (selectrum)[https://github.com/raxod502/selectrum] to do the incremental search for files. However, I do use projectile with consult to do project file searching.

2🎉
blak3mill3r 2021-04-14T23:55:42.142900Z

counsel-find-file I like, it does fuzzy matching of file names and is quite fast

blak3mill3r 2021-04-14T23:56:38.143100Z

although I might have to take a look at selectrum now 🙂