Write core initfiles + defuns
This commit is contained in:
parent
c0661f5293
commit
b998f4ab08
52 changed files with 2444 additions and 706 deletions
40
core/core-flycheck.el
Normal file
40
core/core-flycheck.el
Normal file
|
@ -0,0 +1,40 @@
|
|||
;;; core-flycheck.el --- check yourself before you shrek yourself
|
||||
;; Related to: lib/defuns-flycheck.el
|
||||
|
||||
(use-package flycheck
|
||||
:functions (flycheck-buffer)
|
||||
:commands (flycheck-mode flycheck-list-errors)
|
||||
:init
|
||||
(setq flycheck-indication-mode 'right-fringe
|
||||
;; Removed checks on idle/change for snappiness
|
||||
flycheck-check-syntax-automatically '(save mode-enabled idle-change)
|
||||
flycheck-disabled-checkers '(emacs-lisp-checkdoc make))
|
||||
|
||||
(add-hook! (ruby-mode
|
||||
python-mode
|
||||
php-mode
|
||||
lua-mode
|
||||
shell-mode
|
||||
scss-mode
|
||||
c++-mode
|
||||
c-mode) 'flycheck-mode)
|
||||
:config
|
||||
;; TODO: Implement this
|
||||
(add-unreal-buffer! "^\\*Flycheck.*\\*$")
|
||||
|
||||
(bind! :map flycheck-error-list-mode-map
|
||||
:n [escape] 'kill-this-buffer
|
||||
:n "q" 'kill-this-buffer)
|
||||
|
||||
(evil-initial-state 'flycheck-error-list-mode 'emacs)
|
||||
|
||||
;; Check buffer when normal mode is entered
|
||||
(add-hook! evil-normal-state-entry 'narf*flycheck-buffer)
|
||||
;; And on ESC in normal mode.
|
||||
(advice-add 'evil-force-normal-state :after 'narf*flycheck-buffer)
|
||||
(advice-add 'flycheck-mode-line-status-text :filter-return 'narf*fly-shorter-status))
|
||||
|
||||
(use-package flyspell :commands flyspell-mode)
|
||||
|
||||
(provide 'core-flycheck)
|
||||
;;; core-flycheck.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue