emacs-sideline / sideline-flycheck Goto Github PK
View Code? Open in Web Editor NEWShow flycheck errors with sideline
License: GNU General Public License v3.0
Show flycheck errors with sideline
License: GNU General Public License v3.0
I was investigating why neither my sideline-backend
nor sideline-default
font settings were honored and found:
sideline-flycheck/sideline-flycheck.el
Lines 95 to 96 in ed4d7ef
I'm not certain, yet, but wonder if the sideline display of flycheck-*
faces warrants a replacement. I use smaller and variable width sideline fonts to put more info there, for example.
My thinking is to map all flycheck-*
fonts to sideline-flycheck-*
faces that by default merely inherit from their flycheck counterparts.
E.g. this:
(defgroup sideline-flycheck-faces nil
"Faces used to display on-the-fly syntax checking in the sideline."
:prefix "sideline-flycheck-"
:group 'sideline-flycheck)
(defface sideline-flycheck-error-list-error
'((t :inherit flycheck-error-list-error))
"Sideline Flycheck face for error messages in the error list."
:package-version '(sideline-flycheck . "0.1")
:group 'sideline-flycheck-faces)
What do you think about that?
flycheck-error Flycheck face for errors.
flycheck-error-list-id Face for the error ID in the error list.
flycheck-error-delimiter Flycheck face for errors spanning multiple lines.
flycheck-error-list-info Flycheck face for info messages in the error list.
flycheck-error-list-error Flycheck face for error messages in the error list.
flycheck-error-list-warning Flycheck face for warning messages in the error list.
flycheck-error-list-filename Face for filenames in the error list.
flycheck-error-list-highlight Flycheck face to highlight errors in the error list.
flycheck-error-list-line-number Face for line numbers in the error list.
flycheck-error-list-checker-name Face for the syntax checker name in the error list.
flycheck-error-list-column-number Face for line numbers in the error list.
flycheck-error-list-error-message Face for the error message in the error list.
flycheck-error-list-id-with-explainer Face for the error ID in the error list, for errors that have an explainer.
Apparently it currently works like this:
sideline-render
is called after an idle timer of sideline-delay
(default 0.2s)sideline-render
, it calls sideline-flycheck
backend which is async. sideline-flycheck
only keeps the callback for future useflycheck-display-error-at-point
is called after an idle timer of flycheck-display-errors-delay
(default 0.9s)flycheck-display-error-at-point
, it calls sideline-flycheck--show
which in turn calls the sideline render callback in step 2.So this process only works when flycheck-display-error-at-point
is larger than sideline-delay
.
Hi there. I'm loving sideline-flycheck :)
This is more of a question than an issue. How can I start it automatically? I can start it manually by typing M-x sideline-flycheck-mode
per buffer, but can I have it running by default for every buffer?
Relevant part of my .emacs
:
;; Use sideline and sideline-flycheck to display messages from flycheck.
(use-package sideline
:init
(global-sideline-mode)
(setq
sideline-backends-right '(sideline-flycheck)
;; sideline-backends-skip-current-line t ; don't display on current line
sideline-order-right 'down ; or 'up
sideline-format-left "%s " ; format for left aligment
sideline-format-right " %s" ; format for right aligment
sideline-priority 100 ; overlays' priority
sideline-display-backend-name t ; display the backend name
)
)
(use-package sideline-flycheck
:init (sideline-flycheck-mode)
:hook
(flycheck-mode-hook . sideline-mode)
(flycheck-mode-hook . sideline-flycheck-setup)
)
See the screenshots below.
config
(use-package sideline
:hook ((flycheck-mode . sideline-mode))
:init
(setq sideline-delay .1
sideline-backends-right '(sideline-flycheck))
:config
(set-face-attribute 'sideline-default nil :inherit 'success :foreground 'unspecified))
(use-package sideline-flycheck
:hook (flycheck-mode . sideline-flycheck-setup))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.