The Oval Editor (Emacs)
The Oval Editor is a feature which allows the user to combine text with advanced formatting and drawings seamlessly in Emacs.
This is an amalgamation of several disparate features developed over a period of time. It is also available as a single package in my Emacs fork.
- Draw and Scribble Notes in GNU Emacs
- Text inside a shape (uses librsvg fork)
- Context menu
- Variable fonts
- Faux Bold and Italics
- Annotate Completion Candidates
- Text wrap at fixed pixel width in edit mode (only available in my Emacs fork)
- Symbol selector
Use M-x formula-draw to start drawing in a buffer. Select rectangle shape by pressing r. You can use the grid lines to align the shapes. You may exit the drawing mode by pressing q. Double-click on the shape to start editing the text inside a shape. The editing area is restricted to the width of the enclosing shape. Use right-click context menu to apply formatting. The demo uses Noto Sans Variable font to showcase stretch/width and weight features. Use tab during completion to get a preview in the annotation area with the options. Use C-c C-c to exit the edit mode.
Code
- https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/formula.el
- https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/facemenu.el
Comments
Post a Comment