spacemacs

practicalli-johnny 2021-08-31T08:23:10.023200Z

@drewverlee I think you were experiencing this magit issue, with it not restoring the previous window when not in full screen mode. It seems to be resolved now https://github.com/syl20bnr/spacemacs/issues/14951

πŸ‘ 1
Drew Verlee 2021-08-31T13:27:40.024400Z

thanks for the insight!

West 2021-08-31T15:06:05.024800Z

I’m trying to figure out how to configure a custom modeline. It works, but I want to add cursor line and column indicators.

(with-eval-after-load 'doom-modeline
    (doom-modeline-def-modeline 'my-modeline
      '(workspace-name window-number modals persp-name buffer-info matches remote-host vcs)
      '(misc-info repl lsp))
    (wildwestrom/setup-custom-doom-modeline))
How might I do this? doom-modeline-core.el has a bunch of variables I can put in, but I don’t see anything for line or column numbers.

West 2021-08-31T15:11:08.025100Z

Nevermind, turns out all I had to do was simply add line-number to the list.

πŸ‘ 1
West 2021-08-31T15:57:59.026100Z

still though, how could I have figured that out other than by guessing?

ericdallo 2021-08-31T17:38:38.026300Z

Debugging doom-modeline code :/

West 2021-09-02T16:36:05.026600Z

Ok, now it seems to be erroring on startup. (Spacemacs) Error in dotspacemacs/user-config: line-number is not a defined segment

ericdallo 2021-09-02T16:37:50.026900Z

you can M-x toggle-debug-on-error

ericdallo 2021-09-02T16:38:00.027100Z

which will show a detailed stacktrace when the error happens

West 2021-09-02T17:26:36.027300Z

I didn’t know about this, thank you! @ericdallo

πŸ‘ 1
practicalli-johnny 2021-09-02T18:35:07.027600Z

there are some strange names for modeline parts, perhaps its buffer-position (but thats just a guess) some other names for components I found while searching the internet - I dont use these and I think the checker has a bug, so I use what ever the LSP icon is

;; checker = flycheck results (not working)
  ;; buffer-position
  ;; word-count - number of words in current buffer
  ;; parrot
  ;; selection-info
  ;; repl - shows status of Cloure repl ?
  ;; process ??
  ;; debug
  ;; misc-info  - used for keycast

ericdallo 2021-09-02T18:36:46.027800Z

I added the support for the repl one πŸ˜… it shows a terminal icon (the closest icon for a repl that I found) which is yellow when the repl is not connected and green when it's connected

ericdallo 2021-09-02T18:37:57.028100Z

ericdallo 2021-09-02T18:39:15.028500Z

My current modeline is from left to right: LSP code actions / LSP warnings/errors/info in the project / LSP connected (the rocket one) / REPL / checker

practicalli-johnny 2021-09-04T15:34:18.033600Z

Nice. Lots of doom-modeline-def-segment to look at and see if I wan to include πŸ™‚ Thanks.

πŸ‘ 1