Skip to content

Commit

Permalink
emacs: Add code coverage support
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly authored and TLATER committed Aug 15, 2024
1 parent 55813ef commit 47b991a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions home-config/dotfiles/emacs.d/config/features.el
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,20 @@
:custom
`(devdocs-data-dir . ,(expand-file-name "docsets" data-dir)))

;; ----------------------------------------------------------------------------------
;; Code coverage
;; ----------------------------------------------------------------------------------

(leaf cov
:hook (prog-mode-hook . cov-mode)
:custom
(cov-lcov-patterns . '((lambda (dir name)
(expand-file-name "lcov.info"
(project-root (project-current dir))))))
:custom-face
(cov-none-face . '((t (:foreground "red"))))
(cov-heavy-face . '((t (:foreground "green")))))

;; ----------------------------------------------------------------------------------
;; Project management
;; ----------------------------------------------------------------------------------
Expand Down

0 comments on commit 47b991a

Please sign in to comment.