this post was submitted on 13 Nov 2023
1 points (66.7% liked)
Emacs
313 readers
2 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Have a look at the approach taken by the
logos.el
package. There's a section in the manual called Leverage logos-focus-mode-hook.The idea there is that when you enable the
logos-focus-mode
, you'll often want to change some other minor modes and variables too. But when you disablelogos-focus-mode
, you'll want those other minor modes to revert to their previous value. The Logos package provides a few convenience functions to remember the previous values, and they are automatically restored whenlogos-focus-mode
is turned off.Perhaps the code for that could be made generic, instead of being coupled to the
logos-focus-mode
?