❤️ Please sponsor me if you like this package
A modern, aesthetic overlay display for Flycheck errors in Emacs. Flycheck by displaying errors, warnings, and information messages using customizable overlays.
- 🎨 Beautiful, customizable overlays for error display
- 🚦 Different styles for errors, warnings, and info messages
- 🔄 Real-time overlay updates while editing
- 💡 Smart positioning and formatting of error messages
- 🎯 Efficient overlay management
- 📝 Markdown-style syntax highlighting in messages
- Download
flycheck-overlay.el
- Add to your load path:
(add-to-list 'load-path "/path/to/flycheck-overlay")
(require 'flycheck-overlay)
;; Enable flycheck-overlay-mode globally
(add-hook 'flycheck-mode-hook #'flycheck-overlay-mode)
You can customize the appearance of overlays by modifying these faces:
(custom-set-faces
'(flycheck-overlay-error
((t :background "#453246"
:foreground "#ea8faa"
:height 0.9
:weight normal)))
'(flycheck-overlay-warning
((t :background "#331100"
:foreground "#DCA561"
:height 0.9
:weight normal)))
'(flycheck-overlay-info
((t :background "#374243"
:foreground "#a8e3a9"
:height 0.9
:weight normal))))
Once enabled, flycheck-overlay
will automatically display error messages as overlays below the corresponding line. The overlays will:
- Show errors in red with appropriate background
- Display warnings in yellow/orange
- Show information messages in green
- Highlight code snippets and symbols in messages
- Update in real-time as you type
- Clear automatically when errors are fixed
You can customize the icons used for different types of Flycheck messages in the overlay display. These settings allow you to define custom icons for information, warning, and error messages.
(defcustom flycheck-overlay-info-icon " "
"Icon used for information.")
(defcustom flycheck-overlay-warning-icon " "
"Icon used for warnings.")
(defcustom flycheck-overlay-error-icon " "
"Icon used for errors.")
(defcustom flycheck-overlay-show-at-eol nil
"Show error messages at the end of the line."
:type 'boolean
:group 'flycheck-overlay)
(setq flycheck-overlay-info-icon "🛈")
(setq flycheck-overlay-warning-icon "⚠")
(setq flycheck-overlay-error-icon "✘")
(defcustom flycheck-overlay-hide-when-cursor-is-on-same-line nil
"Hide error messages when the cursor is on the same line."
:type 'boolean
:group 'flycheck-overlay)
;; Custom icons using different Unicode characters
(setq flycheck-overlay-show-at-eol t) ;; show at end of the line instead.
(setq flycheck-overlay-hide-when-cusor-is-on-same-line t) ;;; Hide overlay when cursor is at same line good for shot-at-eol.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Thanks to the Flycheck team for the excellent error checking framework
- Inspired by various overlay-based error display implementations
Mikael Konradsson [email protected]