reddit / emacs

Sideframes

Nicolas-Rougier · 2022-09-02 05:42
[deleted] · 2022-09-02 05:45
[deleted]
Nicolas-Rougier · 2022-09-02 05:45
Sideframes are actually child frames. They can be used to display any buffer, e.g.dashboards, file/buffer browser, etc. Usage example: `(sideframe-make 'left 32 'dark)` Code is here: https://github.com/rougier/sideframe
bespokey · 2022-09-02 06:20
Looks neat. What are the pros and cons compared to a dedicated sidebar?
Nicolas-Rougier · 2022-09-02 07:04
In my case and because I use large borders (24 pixels), that is the only way to have different theme mode (dark and light). Also, the sideframe does not change you window configuration because it is "external".
kkvi115 · 2022-09-02 08:18
That looks very nice!
olivuser · 2022-09-02 09:07
Slick AF as usual :)
THWars · 2022-09-02 09:57
Your work is incredible! Thank you
edumerco · 2022-09-02 11:45
Great work, congratulations... :) As an infinitesimal suggestion, maybe not repeating the month vertically (while it keeps being the same) could reduce ink without reducing information, thus allowing more focus on the relevant information? Or as a variation, keep the letters in place but in a very light color so as not to draw attention until it changes value (month). WDYT? Again, congratulations for sharing your work and genius with all. :)
remillard · 2022-09-02 12:18
This might be a very good way to display the Emacs baked in speedbar. Is there a slick way of automating that tool into your frame? It's always frustrated me that speedbar was in its own frame which meant it needed to be managed along with the parent frame in whatever window management (I'm in Windows) tool you're having to use.
Nicolas-Rougier · 2022-09-02 12:28
Migh be difficult to implement because mails are processed separately. For example, the space between threads needs a "post-process" hook (see https://github.com/rougier/dotemacs/blob/master/dotemacs.org#threads-separation)
Nicolas-Rougier · 2022-09-02 12:30
I didn't try but note that the sideframe is (child) frame such that if you have speedbar in a frame, it's just a matter of switching to speedbar in the sideframe and close the other one.
remillard · 2022-09-02 12:33
I'll see what I can do with this then. Maybe I can script it. While there's some nice things in speedbar for VHDL, I have pretty much switched to treemacs because of the whole inconvenience factor of using speedbar.
SteeleDynamics · 2022-09-02 12:37
Gorgeous! As a long-time Vim user who is learning Emacs, I'm blown away by how much better Emacs looks. I'm getting used to the feel of it. I have an HHKB where the Control key is on the home row, so that helps. I really like `sml-mode` for SML and `cmuscheme` for MIT Scheme (using `run-scheme`).
Schievel1 · 2022-09-02 12:41
What email program is this? Looking pretty neat
edumerco · 2022-09-02 13:07
Oh, pity, but thanks a lot anyway. :) Best...
remillard · 2022-09-02 13:10
Had some issues with simple invokation so I opened an issue on the project page with as many details as I could provide.
wearacasio · 2022-09-02 13:14
I just want to know when this theme is going to be incorporated into Doom 👀
Llamanator3830 · 2022-09-02 13:20
Which font is that? It looks awesome!
vidbina · 2022-09-02 13:22
You are part of the reason why I happily chip away at elisp in efforts to streamline my Emacs setup when others would just think that I'm "wasting time". Peak Emacs inspiration here. I didn't know that one could position frames inside of frames until now. Is presenting a columnar view in a buffer (like a parallel feeds or a Trello like thing) a prime use case for this pattern?
Nicolas-Rougier · 2022-09-02 14:04
mu4e (mu for emacs)
Nicolas-Rougier · 2022-09-02 14:11
See https://www.reddit.com/r/emacs/comments/shzif1/n%CE%BBno_font_stack/
Nicolas-Rougier · 2022-09-02 14:12
Thanks, I answered you on GitHub.
WallyMetropolis · 2022-09-02 14:17
I didn't realize it was at all possible to have a different theme in different frames, simultaneously. Can you point me to some resource explaining how to enable that?
Nicolas-Rougier · 2022-09-02 15:09
When you design a theme, you can set custom colors for `(background dark)` or `(background light)` If you use such a theme, setting the `background-mode` of a frame (`light` or `dark`) should result in the proper theme to be applied. It's not fully automatic (have a look at https://github.com/rougier/sideframe/blob/master/sideframe.el#L290)
Nicolas-Rougier · 2022-09-02 18:46
child frame are made for that I think. They stick to the parent frame and depending how you place them, you can make side-frame. Another usage is [mini-frame](https://github.com/muffinmad/emacs-mini-frame) that allows you to have a minibuffer pretty much anywhere inside your frame.
LukeShu · 2022-09-02 19:09
IMO this was the one big downside to the many upsides of new Emacs 24 custom-theme system; the old color-theme.el fully supported per-frame themes, but that's never really worked with the new system. (But frames can have different light-mode/dark-mode settings)
Schievel1 · 2022-09-02 19:17
Ok I’m using mu4e and mine is looking totally different :D
noman_032018 · 2022-09-02 20:16
I've noticed it as a side-effect of `desktop-save` and `desktop-read` for frames which I changed the themes for in previous sessions.
noman_032018 · 2022-09-02 20:18
That looks interesting, the lack of modeline and scrollbar there is fairly distinctive.
WallyMetropolis · 2022-09-02 21:45
That's interesting. I'll have to think some about how I can use this effectively.
tmting · 2022-09-03 09:08
There is a modeline, but it's at the top. It's called nano modeline, also done by Rougier
noman_032018 · 2022-09-03 15:59
Oh I see, neat. I hadn't realized that's what it was.
Gus_Gustavsohn · 2022-09-19 00:37
Nice! Could this hold, for instance, the org-roam buffer showing backlinks?
MistakeNotDotDotDot · 2022-09-28 03:54
Your emacs screenshots are consistently some of the prettiest I've ever seen. What's the advantage of this over just putting a window there?
Nicolas-Rougier · 2022-09-28 10:06
I want to use two flavors (dark and light) of a theme and because of large borders (in my setup), this is one solution.