emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
2020-09-14T08:37:21.067700Z

wrt the helm situation, i've tried ivy and selectrum over the last couple of days and am leaning toward selectrum.

mpenet 2020-09-14T08:38:55.068400Z

ivy has a few advantages imho > like ivy-occur and some various counsel plugins

mpenet 2020-09-14T08:39:24.069100Z

I'd love to use selectrum instead personally (ivy code is... involved), but no ivy-occur equivalent is a blocker for me

2020-09-14T08:41:24.069500Z

ah i don't know what ivy-occur is, but i will look into it.

2020-09-14T08:41:29.069700Z

thanks for mentioning it.

mpenet 2020-09-14T08:41:47.070100Z

ivy-occur is awesome, shotcut that opens all the candidates in an occur buffer

mpenet 2020-09-14T08:41:52.070300Z

it's very useful

2020-09-14T08:42:00.070500Z

that does sound pretty nice.

mpenet 2020-09-14T08:42:15.070800Z

there's also sub-selection that might be missing from selectrum

2020-09-14T08:42:40.071200Z

perhaps it's a matter of time before some similar features appear 🙂

mpenet 2020-09-14T08:43:43.071900Z

I hope so. I opened an issue for ivy-occur equivalent on selectrum months ago tho

mpenet 2020-09-14T08:44:17.072200Z

the sub-selection feature I mentioned earlier is ivy-restrict-to-matches I think

2020-09-14T08:44:33.072600Z

ah, thanks for the specifics, that should make searching easier

mpenet 2020-09-14T08:45:15.073300Z

it allows narrowing in steps: "show all candidates for foo" > then for all these show candidates for "bar" > etc etc

2020-09-14T08:45:49.073700Z

ha ha ha -- i should stop listening now so i can "tolerate" what i've currently got 🙂

mpenet 2020-09-14T08:46:07.074Z

🙂

2020-09-14T08:46:43.074400Z

in terms of features, abo-abo's stuff will likely be difficult to match

mpenet 2020-09-14T08:47:44.075400Z

yes, also counsel-ag, I am not sure there's a standalone equivalent that can be run with selectrum

2020-09-14T09:02:41.076300Z

ah, it looks like may be an issue where ivy-occur was discussed: https://github.com/raxod502/selectrum/issues/15

2020-09-14T09:03:04.076800Z

yes, i see you there 🙂

2020-09-14T09:03:47.077300Z

hmm, i wonder what the status is...the end of the issue seems to sound somewhat hopeful

mpenet 2020-09-14T09:04:06.077700Z

not sure either

arohner 2020-09-14T10:13:36.080Z

When I have emacs open to a clojure source file, I’m seeing a decent amount of input lag when typing. The problem seems to be worse when using multiple emacs window divisions, or when the application window is occupying the full screen (a 5K monitor). I’ve tried using M-x profiler-start, but the results weren’t very informative:

- command-execute                                                 612  90%
 - call-interactively                                             612  90%
  - byte-code                                                     523  77%
   - read-extended-command                                        523  77%
    - completing-read                                             523  77%
     - completing-read-default                                    523  77%
      - read-from-minibuffer                                      154  22%
       + command-execute                                           11   1%
       + timer-event-handler                                        6   0%
       + nrepl-client-filter                                        1   0%
       + redisplay_internal (C function)                            1   0%
  - funcall-interactively                                          89  13%
   - execute-extended-command                                      89  13%
    + sit-for                                                      86  12%
    + command-execute                                               3   0%
+ ...                                                              56   8%
+ redisplay_internal (C function)                                   5   0%

2020-09-14T11:02:30.082200Z

i notice in that trace something about nrepl so is it the case you are connected to some repl? if you aren't connected to the repl (so just using clojure-mode.el), do you notice similar input lag?

2020-09-14T11:28:01.082600Z

grasping for straws here, but there are some tidbits in here: https://emacs.stackexchange.com/questions/598/how-do-i-prevent-extremely-long-lines-making-emacs-slow

arohner 2020-09-14T11:46:38.083200Z

killing the nrepl didn’t fix it

arohner 2020-09-14T11:46:47.083500Z

switching to M-x text-mode didn’t fix it

arohner 2020-09-14T11:46:59.083800Z

multiple windows definitely makes it worse

2020-09-14T11:49:33.084100Z

if you turn off font-lock does it help at all?

2020-09-14T11:49:49.084400Z

that's one thing i try when things get slow

2020-09-14T11:50:13.084700Z

i guess using text-mode is like turning off font-lock-mode

2020-09-14T11:51:37.085200Z

i presume it's the same no matter which file of clojure code you are taking a look at?

2020-09-14T11:52:59.086Z

may be you've already tried looking at a clojure file after starting emacs with emacs -q

2020-09-14T11:58:21.086400Z

there was mention of performance issues and a 5k display in this issue: https://github.com/sabof/org-bullets/issues/11

2020-09-14T12:01:12.086900Z

didn't know there was also emacs -Q...TIL

arohner 2020-09-14T12:39:27.087800Z

hrm, looks like the problem isn’t present with emacs -nw, running my normal configuration

2020-09-14T12:44:47.088900Z

there is a reddit thread mentioning some slowness of emacs on macos: https://www.reddit.com/r/emacs/comments/d2n2wh/emacs_is_slow_on_macos/ -- is this happening on macos?

arohner 2020-09-14T12:46:36.089600Z

yes, macos. I’ll see if brew has other emacs versions

2020-09-14T12:47:22.090Z

fwiw, i tried recently: https://github.com/d12frosted/homebrew-emacs-plus -- and specified version 27

arohner 2020-09-14T13:15:54.090500Z

emacs-plus is dramatically faster. Thanks for the help

đź‘Ť 1
Josef Richter 2020-09-14T14:34:40.094300Z

hi. this may sound stupid, but somehow I lost a file in emacs. I am positive it was there, I am positive I saved it numerous times, because I had it open for several days, and when I was creating a new file (with random clojure exercises) the previous one simply disappeared.. I though it’s just in another buffer, but it’s gone for good. No success searching for it in spotlight either, no success with recover-file nor recover-session… any ideas, please?

borkdude 2020-09-14T14:34:59.094500Z

does anyone have experience with enhancing an existing flycheck plugin by making it tramp-compatible?

borkdude 2020-09-14T14:35:13.094600Z

Maybe it was in your /tmp folder?

borkdude 2020-09-14T14:35:54.094900Z

If you have Time Machine running you could look for it

Josef Richter 2020-09-14T14:36:56.095100Z

no time machine, I am using icloud & dropbox

Josef Richter 2020-09-14T14:37:07.095400Z

but is there a way to show history of open files in emacs actually?

borkdude 2020-09-14T14:37:27.095600Z

yes, recentf-open-files

Josef Richter 2020-09-14T14:43:19.095800Z

thank you!

2020-09-14T22:20:02.096400Z

did you not already find out that flycheck needs modification? https://github.com/flycheck/flycheck/issues/1816#issuecomment-673159577