emacs-php / emacs-php/php-mode

Strange flicker when decorating docblocks

Open
#622 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
602
Forks
117
Avg merge
12h 54m
Merged PRs (30d)
3

Description

There is an annoying flicker when php-mode decorates docblock I'd like avoid to. Is there any fix/workaround for this?

Take a look at class' docblock (array word) as well as method' docblock.

![php-mode-font-lock-issue](https://user-images.githubusercontent.com/1256298/79428358-b7b05a80-7fce-11ea-979e-e6c9014689de.gif)

Used config:

```elisp
(defun my|common-php-hook ()
"The hook to configure `php-mode'."
(eval-when-compile (require 'flycheck nil t))
(when (file-exists-p "~/.composer/vendor/bin/phpcs")
(setq-local flycheck-php-phpcs-executable "~/.composer/vendor/bin/phpcs"))

;; Coding style
(setq-local flycheck-phpcs-standard "PSR2")
(setq-local php-project-coding-style 'psr2)

;; Fill, indents
(setq-local fill-column 120)
(setq-local indent-tabs-mode nil)

(when (eq 0 (buffer-size))
(insert "

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.