Fork me on GitHub
#emacs
<
2019-11-21
>
solf02:11:26

I personally use just the built-in dired with dired-subtree, which allows me to see subtree by pressing tab

solf02:11:47

(use-package dired-subtree
  :ensure t
  :after dired
  :config
  (bind-key "<tab>" 'dired-subtree-toggle dired-mode-map))

sogaiu02:11:16

that's pretty interesting -- the default binding is 'i', but i guess '<tab>' is more intuitive

solf02:11:16

Oh yeah, I think i stands for insert, as in it inserts the subtree in the buffer. It makes sense, but every other directory tree uses tab so I went with it 😛

solf02:11:16

I wish I had re-binded other common shortcuts in emacs to their modern standards, back when I first started using it.

solf02:11:13

It took me a long time to stop mistakenly close browser tabs with C-w

sogaiu02:11:03

usually i have a hard time remembering custom keybindings so i've pretty much stopped for the most part. if all custom keybindings could automatically show up in a menu so i could look them up easily, i might start again.

futuro03:11:24

which-key might help you @sogaiu

sogaiu03:11:14

@futuro i've used that a bit in doom-emacs happily -- does it somehow have a view of just your custom keybindings?

solf03:11:00

@sogaiu if you want to have a list of only the keybindings you changed, bind-key does that for you, with the caveat that you then need to use it instead of define-key or other built-in ways of changing keybindings.

solf03:11:25

bind-key comes with describe-personal-keybindings (https://github.com/jwiegley/use-package/blob/master/bind-key.el#L92)

❤️ 2
sogaiu03:11:54

@dromar56 oh, that's interesting -- going to take a look now 🙂 thanks!

sogaiu03:11:26

oh, use-package, how did i live without you for so long

parrot 1
solf03:11:37

I like bbatsovs personal config, it's very simple and pretty much only uses use-package to provide structure

sogaiu03:11:03

will take a look -- thanks!

Quest05:11:18

completely different take on use-package (and maybe a tangent) -- https://github.com/raxod502/straight.el

Quest05:11:16

I switched to straight.el after a couple years. The switch was straightforward & found it was much better to manage package versions.

sogaiu05:11:02

fwiw, from a quick peek, it looks like doom-emacs uses both straight and use-package.

j0ni17:11:10

straight provides a use-package backend so if you set a straight config var it will monkey patch all your use-packages and 99% "just work" with your existing use-package based config

j0ni17:11:35

iirc there may be options you need to remove, like :ensure

sogaiu17:11:14

neat -- thanks for the info