working system
This commit is contained in:
commit
e0ad4ea627
53 changed files with 2927 additions and 0 deletions
34
lisp/init-flymake.el
Normal file
34
lisp/init-flymake.el
Normal file
|
@ -0,0 +1,34 @@
|
|||
;;; init-flymake.el --- Configure Flymake global behaviour -*- lexical-binding: t -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(maybe-require-package 'flymake "1.2.1")
|
||||
|
||||
;; Use flycheck checkers with flymake, to extend its coverage
|
||||
(when (maybe-require-package 'flymake-flycheck)
|
||||
;; Disable flycheck checkers for which we have flymake equivalents
|
||||
(with-eval-after-load 'flycheck
|
||||
(setq-default
|
||||
flycheck-disabled-checkers
|
||||
(append (default-value 'flycheck-disabled-checkers)
|
||||
'(emacs-lisp emacs-lisp-checkdoc emacs-lisp-package sh-shellcheck))))
|
||||
|
||||
(add-hook 'flymake-mode-hook 'flymake-flycheck-auto)
|
||||
(add-hook 'prog-mode-hook 'flymake-mode)
|
||||
(add-hook 'text-mode-hook 'flymake-mode))
|
||||
|
||||
(with-eval-after-load 'flymake
|
||||
;; Provide some flycheck-like bindings in flymake mode to ease transition
|
||||
(define-key flymake-mode-map (kbd "C-c ! l") 'flymake-show-buffer-diagnostics)
|
||||
(define-key flymake-mode-map (kbd "C-c ! n") 'flymake-goto-next-error)
|
||||
(define-key flymake-mode-map (kbd "C-c ! p") 'flymake-goto-prev-error)
|
||||
(define-key flymake-mode-map (kbd "C-c ! c") 'flymake-start))
|
||||
|
||||
(setq eldoc-documentation-function 'eldoc-documentation-compose)
|
||||
|
||||
(add-hook 'flymake-mode-hook
|
||||
(lambda ()
|
||||
(add-hook 'eldoc-documentation-functions 'flymake-eldoc-function nil t)))
|
||||
|
||||
(provide 'init-flymake)
|
||||
;;; init-flymake.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue