• Vehicles • Fashion • Recipes • Blogs • Hunt • Travels • Sport • Fun • Handmade • IT • Education
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Bookmarks, Buffers and Windows in Doom Emacs DistroTube

Bookmarks, Buffers and Windows in Doom Emacs DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Bookmarks, Buffers and Windows in Doom Emacs DistroTube I've been using Doom Emacs for a couple of months and have enjoyed the journey. In this video, I will discuss bookmarks, buffers and windows (splits) in Doom Emacs, as well as showing you some of the keybindings specific to Doom Emacs. - https://github.com/hlissner/doom-emacs
Date: 2022-03-30

Comments and reviews: 10


Hi! Your friendly neighborhood Doom guy again! You can resize the window in larger increments by prefixing the keybind with a number: -25 SPC w >- is equivalent to typing -SPC w >- 25 times.
More useful than that may be the -SPC w -- and -SPC w _- keys. Prefix those with a number to resize the window to an exact size (horizontally and vertically, respectively).
Alternatively, there's -SPC w o-, which zooms the current window (pushing aside all the others). Pressing it again restores them to their original sizes.
Hope that helps! (Also, -SPC w- is aliased to -C-w- -- some folks seem to prefer that prefix)

reply

If you want my suggestion about what makes one never leave Emacs: code editing.
I code mostly in C and C++, and find the ability to make Emacs format my code very useful. After adjusting c-auto-newline, c-cleanup-list, c-hanging-braces-alist, c-hanging-colons-alist, c-hungry-delete-key, c-offsets-alist, cua-mode (because Ctrl-C and Ctrl-V should always be for copy-paste), and installing some packages for company+rtags autocompletion... and then binding some keys like F7 to recompile under cc-mode... every other text editor feels raw, clumsy.

reply

I use DOOM emacs as my primary IDE and I could not be happier. I just love space as a leader key philosophy, and together with evil mode there isn't really any other editor or IDE could offer the same ergonomics. Also, in the insert mode I use regular emacs key bindings to move cursor back or forward with Ctrl+f and Ctrl+b without leaving the insert mode and reaching for arrow keys, which is INSANELY convenient. Doom Emacs is a closest thing to pure perfection!
reply

It is strange that doom Emacs don't have a transient state for resizing windows. But it should not be hard to configure.
A transient state is a sub state where you can define different behavior for keys. For example you can configure 'SPC w r' to enter window resize transient state where your hjkl keys will resize windows until you press any other key to exit that transient state. That way you don't have to press 3 keys to just resize a bit.

reply

Quite a few of these are more convoluted than vanilla Emacs. -C-x 1-, -C-x 2-, -C-x 3-, -C-x 0- does all the window splitting you'll need. Control + left click shows you a list of buffers, can also do -C-x C-b-. -C-left-, -C-right- switches between buffers. To navigate the focus through the windows, -C-Tab-.
I don't see the advantage of the weird keybiding in Doom Emacs.

reply

Splits are windows, because they come from before you had graphical environment.
And frames are what is called windows in a graphical environment.
So Emacs Window is a split in a Emacs window.
So Emacs Frame is a Emacs window.
And it is reasonable if you remember that Emacs started where a 24x80 character terminal was all you had. :-)

reply

This is nicely very familiar to a vim user. It's really mostly a reimplementation of vim in emacs together with emacs extensibility.
The window shortcuts are the same in vim, just with ctrl instead of space.
I do actually also have a bunch of buffer shortcuts similar to these set up due to my leader being space

reply

As Vim user I have been enjoying these windows into Emacs, keep them coming!
Side note, did you try out Neovim? I am currently using it as my DD by aliasing vi to neovim. I personally haven't made up my mind on the politics/ideology between the two projects

reply

Did you custom define spc-o-p to open the side pane dired? I don't have that. That jey sequence is undefined. If I hit spc-o the list pops up but there is no p in there. It's undefined.
reply

Is there spacemacs equivalent to select windows? Instead of using SPC w w or SPC w hjkl, you cant just do ALT + 1, ALT + 2.... I am now exploring doom, planning to switch. Thanks
reply
Add a review, comment






Other channel videos